Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
This makes it possible to use alternative installation directories.
And will make these commands honor those directories when specified
for dpkg, and passed down to the maintainer script via the DPKG_ROOT
environment variable.
|
|
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.
|
|
The condition is checking for the same multiple times.
Warned-by: cppcheck
|
|
This avoids confusing the project-wide macro with the DPKG_VERSION_
namespaced ones.
|
|
We need to pass the file type in the mode so that the SE labelling
function does anything at all.
Closes: #786435
|
|
|
|
That is "" or '', and not the unbalanced `' pair.
|
|
Cherry picked from commit 5c58085b746d234066ea94d386182cfc72c612ba.
We should not allow adding user or group names to the database that do
not exist in the system passwd database, as the main dpkg program uses
strict parsing and will fail with an unrecoverable fatal error if it
cannot find a matching name for a uid/gid.
Regression introduced in commit e4d6db177fad401ddc8432cf0e2c64e4fcf7bc0d,
where we went from too strict to too lax parsing.
Closes: #775124
|
|
When we update the file, we should apply the SE Linux context in the
same way we are doing while unpacking binary packages.
Closes: #690361
|
|
We need to allocate and free them.
|
|
When parsing the statoverride database from dpkg-statoverride do
not consider it an error and refuse to operate at all if the user
or group names are not known to the system, just preserve them.
Closes: #563307
|
|
|
|
|
|
Switch all program to use the new function instead of open-coding it.
|
|
|
|
These will perform any necessary action when starting and exiting a
dpkg-based program.
|
|
|
|
This clarifies the term removing the need to mention what file actually
refers to. And gets rid of a first person usage.
|
|
This switch frees the -h option to be used in the distant future for
other purposes, it also uses a character that does not have any other
obvious meaning for help output, and which is pretty safe to be used
blindly by the user in the same way as --help.
|
|
Error messages like "couldn't parse control information from foo.deb"
are not full sentences, so don't punctuate them like one. The main
purpose of this patch is stylistic consistency, but perhaps it can
also make copy-and-paste from messages like
dpkg-query: no path found matching pattern /usr/bin/agrep.
a little easier.
Most actual full sentences should remain untouched. A few full sentences
are error messages at heart, so this patch converts those to lower-case
sentence fragment form, too.
[guillem@debian.org:
- Add missed strings.
- Minor tweaks to strings. ]
Closes: #624000
Requested-by: Jari Aalto <jari.aalto@cante.net>
Signed-off-by: Guillem Jover <guillem@debian.org>
|
|
|
|
|
|
Use cmdinfo long name instead of hard-coding it in the literal string,
and reword some strings to make them more generally usable.
|
|
Having to keep this information twice is error-prone as it easily gets
out of sync. Having to translate it is bothersome. It's not consistent
across dpkg tools, some do print it some don't. It's currently not
accurate, as the output would need to include the holders for all files
that end up being part of the binary. And listing it in the --versions
output is visually annoying and the wrong place.
Just keep this where it belongs, at the file comment headers, above the
license information.
|
|
[hertzog@debian.org:
- Switch dselect method option file. ]
|
|
|
|
|
|
The current implementation demanded libdpkg users to define thisname
themselves, which is not really a nice interface to offer to programs.
Closes: #631757
|
|
Instead define it in myopt.c and initialize it through a new argument to
myopt().
|
|
This avoids a temporary variable, given that now the function is
strongly prototyped.
|
|
|
|
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.
|
|
The interface to get and set the database directory is dpkg_db_get_dir()
and dpkg_db_set_dir().
|
|
Remove now unused pkgadmindir_init().
|
|
|
|
The current names are not descriptive enough, so rename parg to arg_ptr,
farg to arg_func, and finally arg to arg_int (which disambiguates what
kind of data it's holding).
|
|
Always set DPKG_ADMINDIR from dpkg so that all subprocesses inherit
the variable and there's no possible security risk from a user process
setting the variable to write onto a user controlled area.
As usual, the order in which the admindir value is overridden is the
following: built-in default, environment variable and command line
option.
Closes: #97076
Suggested-by: Brendan O'Dea <bod@debian.org>
|
|
This is way more compact, the strings are for temporary values, and the
minimal possible performance difference does not matter here.
|
|
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.
|
|
|
|
Reduce repeated code, and localize it where it belongs.
|
|
Create a new file_stat struct, and use it instead of the
filestatoverride one.
|
|
Conflicts:
debian/changelog
scripts/po/de.po
|
|
|
|
|
|
|