Age | Commit message (Collapse) | Author | Files | Lines |
|
Update to 2952t1f.
|
|
There's no point in creating and messing with the owner and permissions
for this file on each upgrade. This also makes it possible to workaround
a problem when installing dpkg with --force-not-root, as pre-creating
the log file will diasrm the failing chown and chmod calls.
Prompted-by: Johannes Schauer <josch@debian.org>
|
|
|
|
The test suite expects to run under the C locale.
Fixes: https://rt.cpan.org/Ticket/Display.html?id=127314
|
|
All these environment variables are only relevant while running the
test suite. Do not pollute the rest of the environment.
|
|
The cd commands might fail, so we should either check their return
values or globally make errors fatal. Let's do the latter.
Warned-by: shellcheck
|
|
Reported-by: Johannes Schauer <josch@debian.org>
Warned-by: shellcheck
|
|
This variable requires to be left unquoted, which makes it unsafe to
use. But at the same time is unnecessary as we can just use PERL5OPT
instead, so let's just remove it.
Warned-by: shellcheck
|
|
Warned-by: shellcheck
|
|
Warned-by: shellcheck
|
|
Warned-by: shellcheck
|
|
Update to 603t.
|
|
Update to 1116t.
|
|
|
|
|
|
Warned-by: codespell
|
|
|
|
|
|
|
|
This makes it possible to disable any pager usage from these programs.
For dpkg this also becomes a configuration option.
Closes: #909754
|
|
This way we will be able to forcefully disable it.
|
|
Force the output to fully buffered, because originally stdout was
a tty, so it was set as line buffered. This way we send as much as
possible to the pager, which will handle the output by itself.
|
|
If the pager quits early, the parent will receive a SIGPIPE as the write
end of the pipe will not be available anymore. Instead we ignore SIGPIPE
and also EPIPE errors when writing to stdout.
Otherwise if we quit the pager early, the program will exit with an
error code.
Reported-by: Holger Levsen <holger@layer-acht.org>
Ref: #909754
|
|
|
|
This makes it possible to use a dpkg specific pager.
Suggested-by: Craig Sanders <cas@taz.net.au>
Ref: #909754
|
|
There's no point in executing «cat», we are already dumping the contents
to stdout.
|
|
The PAGER environment variable is specified in POSIX as taking a pager
command and any number of arguments to be passed to «sh -c», so we have
to preserve that behavior or this breaks badly on systems where PAGER is
set that way.
This actually gets in the way of improving the pager command presence
detection, but we'll fix that later on, by making the scanning of the
environment variable smarter or by trying to execute the fallbacks.
Closes: #910009
|
|
Let's just handle opening the file and passing its data to the pager
ourselves, as that gives us more control, and then can decide not to
run a pager at all, and do not need to mess with arguments which might
need to be passed to «sh -c».
|
|
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 module handles setting and getting the filesystem root directory.
|
|
Ignore EPERM for chown and chmod based syscalls. And give a more
meaningful error message on chroot().
Closes: #614126
|
|
|
|
This makes it possible to reuse the code by other modules.
|
|
|
|
The check is very simple, and can be done w/o requiring calling diff(1)
for each input file.
This makes the code shorter, more portable, and should be faster in the
non-binary cases.
|
|
|
|
|
|
This will contain different data depending on the program used. We do
not really care about that, later versions of GnuPG have stopped
emitting it, and it makes the test suite fail when using GnuPG 1.x.
Fixes: https://rt.cpan.org/Public/Bug/Display.html?id=127217
|
|
The behavior we are breaking is implemented in the shared library, not
the standalone binary, which affects other frontends, such as aptitude.
The affected behavior was introduced in apt 1.4~beta1, and the last ABI
change of libapt-pkg was in apt 1.1~exp9, so earlier libapt-pkg*
versions are not affected.
Analysis-by: Sven Joachim <svenjoac@gmx.de>
Closes: #909959
|
|
For the CPAN distribution or a non-dpkg-based distribution we cannot
assume that dpkg will be installed, or even available at build time.
Skip these tests if the tools is missing.
|
|
Split the test recommends from the requires and add develop recommends
into a prereqs metadata hierarchy.
|
|
|
|
This will enable the -TRIAL versioning that CPAN uses to avoid indexing
such releases.
|
|
Set the more generic name from within DPKG_DIST_IS_RELEASE, and use that
directly in the Build.PL.in file.
|
|
CPAN does not like that on the grounds that the script itself does not
know which perl to use.
|
|
We listed the licence name in the metadata, but were not shipping the
actual licence text.
|
|
Signed-off-by: Guillem Jover <guillem@debian.org>
|
|
When we started making «dpkg-query --list» use a pager, we missed
documenting this environment variable.
Fixes: commit 05458bb8d50cb3b0f29e53d2a079f2ef874b8f23
|
|
This includes the --force-breaks, --force-conflicts, --force-depends,
--force-depends-versio and --ignore-depends.
Prompted-by: James Clarke <jrtc27@debian.org> (on IRC)
|
|
Prompted-by: Stuart Prescott <stuart@debian.org>
|