summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2009-07-15libdpkg: Change PRINTFFORMAT to take only one argumentGuillem Jover1-2/+2
Always assume the variable arguments go just after the format string.
2009-07-15Move libraries to subdirectories under lib/Guillem Jover1-7/+8
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-14Cleanup eflag value namesGuillem Jover6-17/+18
Remove f and v from value names. Remove duplicated value for reinstreq.
2009-07-14Remove obsolete ‘hold’ and ‘hold-reinstreq’ internal status flagsGuillem Jover1-2/+2
These flags have been obsolete for a long time, and the ‘hold’ part has been converted to the ‘want_hold’ value on database parse. No current system having been upgraded through several Debian releases should have those values in their status database anymore.
2009-07-13Move filesdbinit declaration to filesdb.hGuillem Jover3-4/+3
2009-07-13Fix typo in macro argumentBranden Robinson1-2/+2
2009-07-13Fix typo in commentGuillem Jover1-1/+1
2009-07-13Inline CONFFOPTCELLS into conffoptcells definitionGuillem Jover1-1/+5
The values in CONFFOPTCELLS are dpkg specific, and not to be found in libdpkg so there's no much point in defining the macro there. Also this makes for clearer code.
2009-07-13dpkg: Make conffoptcells staticGuillem Jover2-2/+1
2009-07-13dpkg: Remove unused cfom_main enum valueGuillem Jover1-1/+0
2009-07-12Remove unused assert.h includesGuillem Jover5-5/+0
2009-07-12dpkg: Coalesce similar “takes no arguments” stringsGuillem Jover2-2/+4
Move the option name to an argument to reuse existing translations.
2009-07-12Obsolete --forget-old-unavailGuillem Jover1-29/+2
On parse mark not-installed leftover packages for automatic removal from the database on next dump. The states we consider for removal are want_purge, want_deinstall and want_hold. The latter being the ancient default for not-installed packages. This makes the --forget-old-unavail option not useful anymore, so switch it to be a no-op, and target it for future removal as obsolescent. Closes: #33394, #429262
2009-07-12dpkg: Properly mark packages being purged for disappearanceGuillem Jover2-1/+4
When a package has been purged, it should be marked as want_unknown and the configversion blanked, otherwise dpkg considers it to still be informative and keeps it around, which needs later on manual intervention from the user to clean up the database.
2009-07-03Fix typo (unexecpted -> unexpected)Sven Joachim1-1/+1
2009-06-26libdpkg: Suffix path related function names with ‘path_’Guillem Jover3-3/+3
2009-06-19Use NUL character instead of 0Guillem Jover9-20/+21
2009-06-18Fix english mistake (“as you request” → “as you requested”)David Stansby5-6/+6
2009-06-17Refactor statdb field parsing functionsGuillem Jover2-27/+65
2009-06-17Move diversion db parsing into a new fileGuillem Jover3-72/+136
2009-06-17Move statoverride db parsing into a new fileGuillem Jover3-127/+189
2009-05-26Fix memory leaks due to not destroying pkg iteratorsGuillem Jover2-0/+2
2009-05-12Remove obsolete --force-auto-select dpkg optionGuillem Jover1-2/+0
2009-05-12Remove obsolete --largemem and --smallmem dpkg optionsGuillem Jover2-3/+1
2009-05-11Print a warning when using obsolete --print-installation-architectureGuillem Jover2-1/+9
Packages should be switched to use --print-architecture. This option will be removed sometime in the future. Closes: #528171
2009-03-27Global review of error checking associated to strtol functionsRaphael Hertzog2-10/+13
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-03-22dpkg: refuses empty parameters when integer expectedRaphael Hertzog1-1/+1
Fix setinteger() funtion used for parsing integer options to refuse empty parameters. Currently only affects --abort-after. Based-on-patch-by: Bill Allombert <ballombe@debian.org>
2009-03-22dpkg: separate arguments with "--" when calling dpkg-{deb,query}Bill Allombert1-1/+6
This is needed because any user-supplied argument separator is stripped by the option parser such as "dpkg -S -- -pic" ends up calling "dpkg-query --search -pic" which fails. With this patch, it calls "dpkg-query --search -- -pic" and works as expected.
2009-03-10Fix typo in dpkg output (‘unexecpted’ → ‘unexpected’)Guillem Jover1-1/+1
Closes: #519082 Reported-by: Ivan Masár <helix84@centrum.sk>
2009-03-03Add new pkg_array_free functionGuillem Jover4-0/+15
Use it to free the arrays after use, so that we do not leak.
2009-03-03Refactor package array handlingGuillem Jover5-63/+106
Create a new pkg_array structure, and two new functions to initialize from the db, and to sort the array.
2009-03-02Rename pkg-list.c to pkg-array.cGuillem Jover2-3/+3
2009-02-26dpkg: Add progress reporting while reading the file list databaseGuillem Jover1-3/+13
Reading the files database can take a while on machines with slow disks and an empty cache. To make the wait more tolerable try to display a progress indicator if the output is a terminal. Based-on-patch-by: Romain Francoise <rfrancoise@debian.org>
2009-02-13Remove bogus comment about '--yet-to-unpack'Guillem Jover1-4/+1
2009-02-11dpkg: Rename assert_version_support argument verrev_buf to versionGuillem Jover1-2/+2
2009-02-11dpkg: Print correct feature name on --assert-* failuresGuillem Jover1-8/+11
2009-02-11dpkg: Pass fully constructed versions to assert_version_supportGuillem Jover1-15/+10
Remove the missplaced version constructor from inside assert_version_support, and instead just pass an already initialized structure. This also allows making the version structures non-static.
2009-02-11dpkg: Rename assertversion to assert_version_supportGuillem Jover1-7/+9
2009-02-03Merge branch 'lenny' (through tag '1.14.25')Guillem Jover1-7/+8
Conflicts: ChangeLog configure.ac debian/changelog po/es.po po/ja.po po/ko.po po/pt.po po/ro.po
2009-02-02Do not lose conffiles while replacing them on the same install runGuillem Jover1-6/+6
Only do the ensure_pathname_nonexisting calls when we are not going to return due to an already existing directory or a file not to be overwritten. Those calls are making sure that .dpkg-tmp and .dpkg-new pathnames do not exist, and will remove them if they do, which messes with the way conffiles are handled by keeping those and acting on them later on. Closes: #80416, #513857
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-05dpkg: Use warning function instead of hand crafted fprintf callGuillem Jover1-3/+2
2009-01-04Remove unused macros and prototypesGuillem Jover1-1/+0
2009-01-03dpkg: Change dir to / after chroot when using --instdirColin Watson1-0/+2
Closes: #509578
2008-12-20Error out when trying to replace a conffile w/o a Replaces fieldGuillem Jover1-1/+2
Do not allow installing packages with non-obsolete conffiles owned by other packages without a proper Replaces field. Closes: #508392 Regression introduced in commit 854ad168370000ca46f4ba091c2d5bb05274b6ef, present since dpkg 1.13.14.
2008-12-09Mark strings for translationGuillem Jover1-15/+19
2008-12-09Improve internerr output messages and print the invalid valueGuillem Jover7-20/+24
2008-12-09Properly use internerr to report about programming bugsGuillem Jover1-1/+1
Use internerr for internal error conditions which happen only due to programming bugs and should never occur, otherwise the code is wrong and should be fixed.
2008-12-05Use the warning function instead of hand-coded print callsGuillem Jover7-84/+58
2008-11-18Merge branch 'lenny' (through tag '1.14.23')Guillem Jover4-6/+13
Conflicts: ChangeLog configure.ac debian/changelog man/ChangeLog man/po/de.po man/po/es.po man/po/hu.po man/po/pt_BR.po po/ChangeLog po/es.po po/ja.po po/ko.po po/pt.po po/ro.po src/errors.c