Age | Commit message (Collapse) | Author | Files | Lines |
|
Always assume the variable arguments go just after the format string.
|
|
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.
|
|
Remove f and v from value names. Remove duplicated value for reinstreq.
|
|
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.
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
Move the option name to an argument to reuse existing translations.
|
|
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
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Packages should be switched to use --print-architecture. This option
will be removed sometime in the future.
Closes: #528171
|
|
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).
|
|
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>
|
|
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.
|
|
Closes: #519082
Reported-by: Ivan Masár <helix84@centrum.sk>
|
|
Use it to free the arrays after use, so that we do not leak.
|
|
Create a new pkg_array structure, and two new functions to initialize
from the db, and to sort the array.
|
|
|
|
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>
|
|
|
|
|
|
|
|
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.
|
|
|
|
Conflicts:
ChangeLog
configure.ac
debian/changelog
po/es.po
po/ja.po
po/ko.po
po/pt.po
po/ro.po
|
|
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
|
|
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/).
|
|
|
|
|
|
Closes: #509578
|
|
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.
|
|
|
|
|
|
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.
|
|
|
|
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
|