Age | Commit message (Collapse) | Author | Files | Lines |
|
After creating, renaming or unlinking database files sync its
containing directory, to guarantee the new file entry is correctly
listed in the directory.
Closes: #567089
Base-on-patch-by: Jean-Baptiste Lallement <jeanbaptiste.lallement@gmail.com>
|
|
This guarantees the file contents will be there in case of abrupt
program termination (due to crashes for example, or user intervention).
This also guarantees the atomicity of rename(2) calls.
Closes: #430958
Based-on-patch-by: Jean-Baptiste Lallement <jeanbaptiste.lallement@gmail.com>
|
|
The options are pretty useless and non-standard. The user can surely
cat a file from the installed package. In addition this option has not
worked ever on non-Debian systems as it's relying on the GPL-2 file
from the base-files Debian package. So remove it, and we get some code
reduction as a nice side-effect.
|
|
|
|
This removes all trailing spaces and the optional trailing slash on
GNU-style ar format, making it easier to parse and avoiding having to
compare against the compat strings.
|
|
This allows the code to parse the ar header normally w/o needing to
seek back.
|
|
The new name makes more sense, as the former might seem to imply the
total size of the array and not the amount of elements in it.
|
|
|
|
Indent license text to one space after the '#'. Add '#' to blank lines
between paragraphs and remove trailing '#' after the license text.
|
|
Use UTF-8 copyright symbol instead of “(C)”. Add missing “Copyright ©”
to copyright statements instead of relying on the first occurance.
Use properly spelled names.
|
|
Add a missing “of the License” after “version 2”. Move “but” and “GNU”
at the end of line to the next line. This matches more closely the
paragraph found in the license text for the GPL version 2.
|
|
Use the <http://www.gnu.org/licenses/> URL, instead of in most cases
the outdated FSF address, which is way more stable, as the latter has
changed several times in the past.
|
|
Place first <config.h> and <compat.h>, then all <sys/*.h> sorted by
complexity, followed by the rest of the system headers, then <dpkg/*.h>
and finally the local "*.h" ones.
Move <dpkg/i18n.h> inclusion into libdpkg inclusion block, as the
<gettext.h> compatibility header already takes care of including
<locale.h> before <libintl.h> on environments were its probamatic.
Removed duplicated inclusions.
|
|
Directly use printversion and usage functions, make them exit and change
their prototypes to fit cmdinfos.
This solves the ugly situation of expecting helponly and versiononly
callers to respectively define printversion and usage themselves.
|
|
Make it verbose when building the Debian packages.
|
|
This is a private macro, internal to dpkg-split.
|
|
Cleans up the code. And as a side effect, we get rid of bogus checks
for EOF, which should have been checking for negative return values.
|
|
|
|
|
|
|
|
Tell automake not to add “-I.” to the preprocessor flags, to avoid
file collisions with system headers. Re-add the path where config.h
is located. Namespace and use bracketed file inclusions for libdpkg
headers, and use quoted inclusions for program headers.
|
|
|
|
|
|
Prefix them all with DPKG_ATTR_, and use shorter but still meaningful
names.
|
|
This will allow to use the same include path than the future system
one, for example “#include <dpkg/dpkg.h>”. It also unclutters the source
topdir.
|
|
|
|
|
|
|
|
|
|
Several calls to strtol() or strtoul() are not followed by a
proper check that ensures that they have parsed an integer value
(and not an empty string).
|
|
Move common ignore matches to the top-level .gitignore.
Force directory matching by adding a trailing /.
Remove unused matches (enoent).
Add missing matches (t.tmp and autom4te.cache/).
|
|
|
|
To reduce inter-dependencies due to usage of printforhelp.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Some 'Copyright <year>' entries didn't have a copyright symbol.
Add it and switch the rest from '(C)' to '©', but we don't do this
on program output which for now should remain pure ascii.
|
|
|
|
|
|
Place them after libdpkg.a.
Based on a patch by Martin Koeppe. Closes: #481805
|
|
|
|
|
|
When porting to other systems without gettext functionality, other
applications might need it as well, so either use --with-libintl-prefix
for a global library, or disable NLS support.
|
|
|
|
Those were making some code to never be executed. This fixes most of the
bugs introduced with commit ea93ed48c17445d01b67f3fa8a20a5a644a89e5b.
|