Age | Commit message (Collapse) | Author | Files | Lines |
|
We should not clear the selections for packages that are not already
installed in the system, as they will end up disappearing on the next
operation anyway.
Closes: #927752
|
|
These are handling a package hash, and db seems to imply some kind of
on-disk storage. Rename the pkgiterator too to pkg_hash_iter to make it
consistent.
|
|
This will prepare the ground for external programs to start using
libdpkg to access the dpkg fsys database via a proper API, instead
of messing with the on-disk layout in so many improper ways.
|
|
This continues the work to generalize and make these interfaces
available to other users beside dpkg itself.
|
|
When the package is not known, we do an early skip to the next loop
iteration, but forgot to increment the line number, which means that
these will be off.
Closes: #888983
Reported-by: Heinz Repp <heinz.repp@arcor.de>
|
|
Mention that the package cannot be found on the status nor available
database, and that to the FAQ.
Closes: #842230
|
|
Otherwise we'll crash in commandfd.
|
|
|
|
|
|
|
|
|
|
|
|
Closes: #764673
|
|
|
|
|
|
|
|
This gets rid of the need to export the statusinfos and wantinfos
variables from libdpkg.
|
|
|
|
Document this in the man page, and warn whenever we find unknown
packages during the --set-selections processing.
Closes: #703092
|
|
This switches all ad-hoc stderr printing for error notices to the
notice() function.
|
|
|
|
The upgrade is scheduled by explicit calls to pkg_infodb_upgrade() if
the current database format version is less than the latest supported
format or if the previous upgrade was interrupted.
The upgrade goes as follows:
- link all old files to their new names.
- set <admindir>/info/format-new to 1.
- remove all old files.
- rename <admindir>/info/format-new to <admindir>/info/format.
In case of abrupt interruption, the presence of <admindir>/info/format-new
means the upgrade is not yet completed and it needs to be retried. In case
of clean interruption with rollback, that file is removed after the old
layout has been restored.
Based-on-patch-by: Raphaël Hertzog <hertzog@debian.org>
Patch-sponsored-by: Linaro Limited
Designed-by: Guillem Jover <guillem@debian.org>
Signed-off-by: Guillem Jover <guillem@debian.org>
|
|
This affects --audit, --yet-to-unpack and --get-selections.
Sponsored-by: Linaro Limited
[guillem@debian.org:
- Adapt to new pkg_name API.
- Only arch-qualify when unambiguous. ]
Signed-off-by: Guillem Jover <guillem@debian.org>
|
|
This affects --ignore-depends, --configure, --remove, --purge,
--triggers-only, --get-selections and --set-selections.
Based-on-patch-by: Raphaël Hertzog <hertzog@debian.org>
Patch-sponsored-by: Linaro Limited
Signed-off-by: Guillem Jover <guillem@debian.org>
|
|
The reworked function takes into account the architecture while comparing
the packages, if that would make the package name output ambiguous.
Based-on-patch-by: Raphaël Hertzog <hertzog@debian.org>
Patch-sponsored-by: Linaro Limited
Signed-off-by: Guillem Jover <guillem@debian.org>
|
|
The function is being used for showing purposes.
|
|
This does not apply for package constructors.
|
|
|
|
Sponsored-by: Linaro Limited
Signed-off-by: Guillem Jover <guillem@debian.org>
|
|
Remove now unused struct pkginfo name member.
|
|
|
|
This will allow using type-safe function pointers instead of casting
them around. Replace all exit(3) calls with return statements. Remove
DPKG_ATTR_NORET from function declarations, all functions are expected
to return now.
|
|
Use dpkg_db_get_dir() and dpkg_db_get_path() to globally retrieve the
database directory instead of passing it around.
|
|
We'll need to reuse the modstatdb_init() function name for further
refactoring.
|
|
Some times we need to write back the status file, but not the available
file. Add a new flag to handle those cases.
Based-on-patch-by: Michel Lespinasse <walken@zoy.org>
|
|
For commands that only make use of information from the status file,
there's no need to make them read and parse the available file. This
change does not alter the current behaviour, and commands that were
previously updating the available file will continue doing so.
Removing further access to it is pending a decision on how to treat
globally the available file, which needs interaction with the package
manager frontend developers.
Closes: #397121
Based-on-patch-by: Michel Lespinasse <walken@zoy.org>
|
|
|
|
|
|
This allows the strings to be terminated, thus printable or accessed
through the standard C string functions, and at the same time
appendable.
|
|
It's easier to read if the varbuf calls affecting the same variable are
close together, rather than dispersed around in the code.
|
|
Make the varbuf API a bit more consistent.
|
|
Make the varbuf API a bit more consistent.
|
|
Remove trailing spaces. Remove blank lines not separating different code
blocks. Remove blank lines at the end of the file.
|
|
|
|
|
|
|
|
The convention is for functions named free to deallocate the contents
and the given pointer, while this one only deallocates the contents, so
we rename it to make this distinction clear.
|
|
The convention is for functions named _free to deallocate the contents
and the given pointer, while this one only deallocates the contents, so
we rename it to make this distinction clear.
|
|
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.
|