summaryrefslogtreecommitdiff
path: root/dpkg-split
AgeCommit message (Collapse)AuthorFilesLines
2010-03-12Do an fsync on database directoriesGuillem Jover1-0/+2
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>
2010-03-06Do an fsync on files written to diskGuillem Jover2-0/+9
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>
2010-02-25Remove --license and --licence options from toolsGuillem Jover1-5/+1
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.
2010-02-19Mark several functions with DPKG_ATTR_NORETGuillem Jover1-2/+2
2010-01-28Normalize ar member names when readingGuillem Jover2-2/+9
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.
2010-01-28Do not include the ar magic in the deb and deb-split magic macrosGuillem Jover2-6/+7
This allows the code to parse the ar header normally w/o needing to seek back.
2010-01-28libdpkg: Rename sizeof_array to array_countGuillem Jover1-1/+1
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.
2009-11-09dpkg-split: Fix a directory stream leakRaphael Geissert1-0/+1
2009-11-08Unify format in license headersGuillem Jover1-10/+10
Indent license text to one space after the '#'. Add '#' to blank lines between paragraphs and remove trailing '#' after the license text.
2009-11-08Fix copyright statementsGuillem Jover1-1/+1
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.
2009-11-08Unify text in license headersGuillem Jover7-35/+35
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.
2009-11-08Replace FSF address by pointing to the gnu.org URLGuillem Jover7-21/+14
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.
2009-10-26Sort order of header includesGuillem Jover5-31/+33
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.
2009-09-30Remove helponly and versiononly functionsGuillem Jover1-6/+10
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.
2009-09-15Make the build silent by defaultGuillem Jover1-2/+2
Make it verbose when building the Debian packages.
2009-09-15Move PARTSDIR macro from libdpkg to dpkg-splitGuillem Jover1-0/+2
This is a private macro, internal to dpkg-split.
2009-09-06Use m_output instead of checking printing functions return codeGuillem Jover1-15/+19
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.
2009-09-06Use m_output instead of fflush, ferror and werrGuillem Jover3-5/+5
2009-08-15Use AM_CPPFLAGS instead of deprecated INCLUDES in Makefile.am filesGuillem Jover1-1/+1
2009-08-13Use MD5HASHLEN instead of literalsGuillem Jover2-7/+9
2009-07-15Disable default automake preprocessor include pathsGuillem Jover6-16/+20
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.
2009-07-15libdpkg: Rename dpkg-i18n.h to i18n.hGuillem Jover5-5/+5
2009-07-15libdpkg: Move C language definition macros to macros.hGuillem Jover1-1/+1
2009-07-15libdpkg: Rename and namespace compiler attributesGuillem Jover1-3/+3
Prefix them all with DPKG_ATTR_, and use shorter but still meaningful names.
2009-07-15Move libraries to subdirectories under lib/Guillem Jover1-3/+4
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.
2009-07-13dpkg-split: Properly check error condition on open when splittingGuillem Jover1-1/+2
2009-07-12Remove unused assert.h includesGuillem Jover1-1/+0
2009-06-26dpkg-split: Use the correct units (KiB) when referring to partsizeGuillem Jover1-1/+1
2009-06-19Use NUL character instead of 0Guillem Jover3-6/+7
2009-03-27Global review of error checking associated to strtol functionsRaphael Hertzog2-1/+3
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).
2009-01-23Cleanup .gitignore filesGuillem Jover1-4/+0
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/).
2009-01-04libdpkg: Move macros from dpkg.h to more specialized headersGuillem Jover1-0/+4
2009-01-03libdpkg: Move basusage from ehandle to myoptGuillem Jover1-0/+1
To reduce inter-dependencies due to usage of printforhelp.
2008-12-09Mark strings for translationGuillem Jover3-14/+18
2008-12-09Improve internerr output messages and print the invalid valueGuillem Jover1-1/+2
2008-09-14libdpkg: Move loadcfgfile from standard_startup to its callersGuillem Jover1-1/+1
2008-09-14libdpkg: Move myopt from standard_startup to each program mainGuillem Jover4-1/+6
2008-09-14libdpkg: Do not pass any argument to standard_shutdownGuillem Jover1-1/+1
2008-09-14libcompat: Add new compat.h headerGuillem Jover5-0/+5
2008-09-14Move locale.h inclusion and locale setup to each program mainGuillem Jover1-0/+8
2008-09-14libdpkg: Move gettext related definitions to a new dpkg-i18n.hGuillem Jover5-0/+10
2008-06-30Switch to use UTF-8 copyright symbol and add missing onesGuillem Jover6-6/+6
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.
2008-05-24Coalesce similar badusage() strings for translationGuillem Jover3-3/+8
2008-05-24Use sizeof_array instead of ad-hoc calculationGuillem Jover1-1/+2
2008-05-19Fix link order when using libcompat.a and libintl.aGuillem Jover1-2/+2
Place them after libdpkg.a. Based on a patch by Martin Koeppe. Closes: #481805
2008-03-11Move command line common option utilities to lib/myopt-util.cGuillem Jover1-11/+6
2008-02-04Use functions from libcompat when those are not provided by the systemGuillem Jover1-1/+5
2008-01-21Use external gettext intl libraryGuillem Jover1-1/+1
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.
2008-01-16Use NULL instead of 0Guillem Jover2-2/+4
2008-01-07Fix signed vs unsigned value comparisonsGuillem Jover1-3/+3
Those were making some code to never be executed. This fixes most of the bugs introduced with commit ea93ed48c17445d01b67f3fa8a20a5a644a89e5b.