2 years agoFrench translation update
Christian PERRIER [Wed, 18 Jan 2012 17:59:02 +0000 (18:59 +0100)]
French translation update

1854 translated messages, 159 fuzzy translations, 51 untranslated messages.

2 years agoUpdate French translation
Christian PERRIER [Mon, 16 Jan 2012 06:58:38 +0000 (07:58 +0100)]
Update French translation

Update to 1023t

2 years agoFix typos (children)
Guillem Jover [Mon, 16 Jan 2012 07:46:29 +0000 (08:46 +0100)]
Fix typos (children)

Found by Lintian.

2 years agolibdpkg: Do not dereference NULL pointers on dpkg_arch_remove()
Guillem Jover [Mon, 16 Jan 2012 07:34:44 +0000 (08:34 +0100)]
libdpkg: Do not dereference NULL pointers on dpkg_arch_remove()

Regression introduced in commit 1c1c2f7dc4b191f665f7cf7d8f70e7b66f942212.

2 years agodpkg: Get rid of all remaining deppossi->ed->pkg access
Raphaël Hertzog [Fri, 4 Feb 2011 21:31:58 +0000 (22:31 +0100)]
dpkg: Get rid of all remaining deppossi->ed->pkg access

They are replaced with loops using deppossi_pkg_iterator.

Sponsored-by: Linaro Limited
Signed-off-by: Guillem Jover <>
2 years agodpkg: Add new deppossi package iterator functions
Guillem Jover [Sat, 5 Nov 2011 13:24:08 +0000 (14:24 +0100)]
dpkg: Add new deppossi package iterator functions

Since a dependency now points to a pkgset, if you want to find the
correct instance of the package that satisfies the dependency, you
have to take into the account the arch affinity expressed by the

The function deppossi_pkg_iter_next() now takes care of this. It
can return multiple packages when the dependency is a wildcard one
(foo:any), you just need to pass the iterator previously created
by deppossi_pkg_iter_new(), and free it with deppossi_pkg_iter_free().

Based-on-patch-by: Raphaël Hertzog <>
Patch-sponsored-by: Linaro Limited
Signed-off-by: Guillem Jover <>
2 years agoUpdate German translation of manual pages
Helge Kreutzmann [Sun, 15 Jan 2012 16:03:25 +0000 (17:03 +0100)]
Update German translation of manual pages

Update to 2102t.

2 years agos-s-d(8): Document in more detail the implications of matching options
Guillem Jover [Sun, 15 Jan 2012 06:25:26 +0000 (07:25 +0100)]
s-s-d(8): Document in more detail the implications of matching options

Closes: #367608

2 years agos-s-d(8): Wrap long lines with a quoted backslash
Guillem Jover [Sun, 15 Jan 2012 06:23:51 +0000 (07:23 +0100)]
s-s-d(8): Wrap long lines with a quoted backslash

2 years agos-s-d: Do not use a conditional operator when the return value is fine
Guillem Jover [Sun, 15 Jan 2012 06:37:34 +0000 (07:37 +0100)]
s-s-d: Do not use a conditional operator when the return value is fine

2 years agos-s-d: Rename pidexec to process_name in KVM's pid_is_cmd()
Guillem Jover [Sun, 15 Jan 2012 06:36:07 +0000 (07:36 +0100)]
s-s-d: Rename pidexec to process_name in KVM's pid_is_cmd()

2 years agos-s-d: Fix --name matching on GNU/Hurd
Guillem Jover [Sun, 15 Jan 2012 06:23:27 +0000 (07:23 +0100)]
s-s-d: Fix --name matching on GNU/Hurd

The pid_is_cmd() function was not stripping the prefix directories from
the process argv[0] pathname.

2 years agos-s-d: Add a fallback pid_is_exec() implementation using pid_is_cmd()
Guillem Jover [Sun, 15 Jan 2012 05:55:51 +0000 (06:55 +0100)]
s-s-d: Add a fallback pid_is_exec() implementation using pid_is_cmd()

This consolidates the fallback implementation into a single function that
can be modified centrally.

2 years agos-s-d: Swap pid_is_cmd() and pid_is_exec() libkvm implementations
Guillem Jover [Sun, 15 Jan 2012 06:20:23 +0000 (07:20 +0100)]
s-s-d: Swap pid_is_cmd() and pid_is_exec() libkvm implementations

pid_is_exec() was checking for the process name while pid_is_cmd() was
checking for the (supposed) executable pathname, so they were performing
each other's task.

2 years agoUpdate German translation of manual pages
Helge Kreutzmann [Sat, 14 Jan 2012 15:45:58 +0000 (16:45 +0100)]
Update German translation of manual pages

Update to 2101t.

2 years agodeb-symbols(5): drop misleading spaces in the format description
Raphaël Hertzog [Fri, 13 Jan 2012 19:49:21 +0000 (20:49 +0100)]
deb-symbols(5): drop misleading spaces in the format description

2 years agoUpdate German translation of manual pages
Helge Kreutzmann [Wed, 11 Jan 2012 21:11:54 +0000 (22:11 +0100)]
Update German translation of manual pages

Update to 2100t0f1u.

2 years agolibcompat: Use a different temporary file per process on vsnprintf()
Guillem Jover [Wed, 11 Jan 2012 06:29:28 +0000 (07:29 +0100)]
libcompat: Use a different temporary file per process on vsnprintf()

Avoid race conditions from childs after fork(2).

Closes: #655411

Reported-by: Daniel Ruoso <>
2 years agolibdpkg: Add virtual source:Package and source:Version fields
Guillem Jover [Mon, 2 Jan 2012 05:56:41 +0000 (06:56 +0100)]
libdpkg: Add virtual source:Package and source:Version fields

Closes: #653575

2 years agoRename “show:” virtual fields to binary:Summary and db:Status-Abbrev
Guillem Jover [Wed, 11 Jan 2012 07:34:25 +0000 (08:34 +0100)]
Rename “show:” virtual fields to binary:Summary and db:Status-Abbrev

Use more meaningful namespaces for the fields, matching the existing
convention used in substvars.

2 years agodpkg-query(1): Reduce Tag field description to fit it in one line
Guillem Jover [Wed, 11 Jan 2012 07:29:21 +0000 (08:29 +0100)]
dpkg-query(1): Reduce Tag field description to fit it in one line

2 years agodpkg-query(1): Add a new subsection to explain virtual fields
Guillem Jover [Wed, 11 Jan 2012 07:19:00 +0000 (08:19 +0100)]
dpkg-query(1): Add a new subsection to explain virtual fields

2 years agoUpdate German translation of manual pages
Helge Kreutzmann [Tue, 10 Jan 2012 19:42:12 +0000 (20:42 +0100)]
Update German translation of manual pages

Update to 2098t.

2 years agodeb-control(5): fix Multi-Arch description
Raphaël Hertzog [Tue, 10 Jan 2012 07:53:59 +0000 (08:53 +0100)]
deb-control(5): fix Multi-Arch description

The field is allowed in “Architecture: all” packages. And “Multi-Arch:
allowed” does not mean that reverse dependencies can be marked as
_needing_ foreign packages but only that they can be marked as _accepting_
foreign packages to satisfy them.

Reported-by: Jakub Wilk <>
Closes: #654453

2 years agolibdpkg: Add new package name accessors
Guillem Jover [Tue, 1 Mar 2011 02:55:54 +0000 (03:55 +0100)]
libdpkg: Add new package name accessors

Those functions are meant to be used everywhere where we want to print
out a distinguishing package name instead of the currently ambiguous

Based-on-patch-by: Raphaël Hertzog <>
Patch-sponsored-by: Linaro Limited
Signed-off-by: Guillem Jover <>
2 years agolibdpkg: Pass pkginfo instead of void * to trig_parse_ci callbacks
Guillem Jover [Wed, 30 Nov 2011 02:53:54 +0000 (03:53 +0100)]
libdpkg: Pass pkginfo instead of void * to trig_parse_ci callbacks

Use strict types instead of a ‘void *’ pointer.

2 years agolibdpkg: Make test function static
Guillem Jover [Mon, 9 Jan 2012 05:53:12 +0000 (06:53 +0100)]
libdpkg: Make test function static

2 years agodselect: Remove dead code after break keyword
Guillem Jover [Mon, 9 Jan 2012 05:50:26 +0000 (06:50 +0100)]
dselect: Remove dead code after break keyword

The commit d4d3484ac88ca3953fef3cf2c0464cdc776b6574 forgot to remove
this code.

2 years agoFix translation of -B and -A options of dpkg-buildpackage. Thanks to Vincent Danjean...
Christian PERRIER [Sat, 7 Jan 2012 06:27:03 +0000 (07:27 +0100)]
Fix translation of -B and -A options of dpkg-buildpackage. Thanks to Vincent Danjean. Closes: #654626

2 years agoUpdate German translation of manual pages
Helge Kreutzmann [Tue, 3 Jan 2012 09:41:51 +0000 (10:41 +0100)]
Update German translation of manual pages

Update to 2098t.

2 years agoGerman dpkg translation update
Sven Joachim [Mon, 2 Jan 2012 10:24:46 +0000 (11:24 +0100)]
German dpkg translation update

Update to 1018t.

2 years agodpkg: Add architecture checks to --audit
Guillem Jover [Tue, 15 Nov 2011 20:59:17 +0000 (21:59 +0100)]
dpkg: Add architecture checks to --audit

2 years agodpkg: Switch from foreign arch option to add and remove commands
Guillem Jover [Tue, 15 Nov 2011 20:59:17 +0000 (21:59 +0100)]
dpkg: Switch from foreign arch option to add and remove commands

The --foreign-architecture option is not a good interface, the problem
with it comes from the fact that the architectures supported by the
database are not configuration, they are state. This shows up in several

When a front-end needs to load the list of architectures, it needs to
get someone to parse dpkg.cfg files, this is currently done by dpkg
itself, and the list can be retrieved with --print-foreign-architectures,
the problem appears when wanting a front-end to load them through libdpkg.
Making the latter have to execute «dpkg --print-foreign-architectures»
would be suboptimal, and making libdpkg have to load dpkg.cfg would be
distasteful. Another issue is that if the list of foreign architectures
is on the configuration files it makes it slightly more tricky to
cross-grade dpkg, and it makes it fairly easy to accidentally remove
architectures required by the database.

Replace the option with two new commands --add-architecture and
--remove-architecture which will perform sanity checks and store and
load the architecture list (including the native arch) in an internal
db file under /var/lib/dpkg/.

2 years agolibdpkg: Add new dpkg_arch database interface
Guillem Jover [Tue, 15 Nov 2011 20:59:17 +0000 (21:59 +0100)]
libdpkg: Add new dpkg_arch database interface

The arch database will store all known architectures in the file
«/var/lib/dpkg/arch», this includes the native architecture dpkg
was built for, and all registered foreign architectures.

2 years agoUse the new atomic file API instead of ad-hoc code
Guillem Jover [Tue, 22 Nov 2011 21:44:45 +0000 (22:44 +0100)]
Use the new atomic file API instead of ad-hoc code

 - Switch dselect method option file. ]

2 years agolibdpkg: New atomic file module
Guillem Jover [Tue, 22 Nov 2011 21:44:07 +0000 (22:44 +0100)]
libdpkg: New atomic file module

2 years agolibdpkg: Add missing symbols to the version script
Guillem Jover [Mon, 2 Jan 2012 06:13:29 +0000 (07:13 +0100)]
libdpkg: Add missing symbols to the version script

2 years agoUpdate German translation of manual pages
Helge Kreutzmann [Thu, 29 Dec 2011 19:26:27 +0000 (20:26 +0100)]
Update German translation of manual pages

Update to 2096t.

2 years agoUpdate German scripts translation
Helge Kreutzmann [Thu, 29 Dec 2011 18:48:48 +0000 (19:48 +0100)]
Update German scripts translation

Update to 528t.

2 years agodpkg-buildflags: new --query-features command
Kees Cook [Thu, 8 Dec 2011 23:53:14 +0000 (15:53 -0800)]
dpkg-buildflags: new --query-features command

Since the logic for having a hardening flag enabled or disabled depends
on the architecture, and since the flags may change over time for each
hardening feature, there needs to be a way to externally query the state
of the hardening features. Specifically, lintian needs this to be able
to figure out if a binary package is missing expected hardening features.
Instead of maintaining multiple hard-coded lists of expected hardening
features, this makes dpkg-buildflags the canonical location of the
information, which can be queried by externally. (See bug 650536.)

Signed-off-by: Kees Cook <>
Signed-off-by: Raphaël Hertzog <>
2 years agoDpkg::Vendor::Debian: refactor compiler hardening logic
Kees Cook [Wed, 28 Dec 2011 23:03:44 +0000 (15:03 -0800)]
Dpkg::Vendor::Debian: refactor compiler hardening logic

Refactor the hardened compiler flag logic so the "use_feature" variable ends
up controlling the final stance of each given hardening feature.

Signed-off-by: Kees Cook <>
Signed-off-by: Raphaël Hertzog <>
2 years agodpkg-buildflags(1): clarify the relationship between relro/bindnow
Kees Cook [Wed, 28 Dec 2011 23:22:55 +0000 (15:22 -0800)]
dpkg-buildflags(1): clarify the relationship between relro/bindnow

Clarify the documentation about how bindnow will be forced off if relro
is not enabled or available.

Signed-off-by: Kees Cook <>
Signed-off-by: Raphaël Hertzog <>
2 years agoUpdate German translation of manual pages
Helge Kreutzmann [Wed, 28 Dec 2011 18:26:37 +0000 (19:26 +0100)]
Update German translation of manual pages

Update to 2091t.

2 years agoUpdate German scripts translation
Helge Kreutzmann [Wed, 28 Dec 2011 18:09:17 +0000 (19:09 +0100)]
Update German scripts translation

Update to 528t.

2 years agodpkg-source(1): more explanations for dpkg-source --commit
Raphaël Hertzog [Fri, 23 Dec 2011 14:41:43 +0000 (15:41 +0100)]
dpkg-source(1): more explanations for dpkg-source --commit

Clarify the conditions under which it's possible to pass an explicit patch
file to dpkg-source --commit (for "3.0 (quilt)" source packages). This
option has a very narrow purpose: it's mainly to avoid having to
regenerate the patch which can be a costly operation for large packages
and thus assumes several things that one should not forget when using it.

2 years agodpkg-source: fix issue with relative filename given to --commit
Raphaël Hertzog [Fri, 23 Dec 2011 13:52:34 +0000 (14:52 +0100)]
dpkg-source: fix issue with relative filename given to --commit

With the “3.0 (quilt)” source format, dpkg-source would happily ignore the
patch-file parameter if it was not found, instead of properly erroring
out. Furthermore a relative filename would also not be found when the
given directory is "." since dpkg-source does a chdir("..") in that case.

Both issues are fixed by this commit.

Closes: #652414
Reported-by: Sam Hartman <>
2 years agoUpdate German translation of manual pages
Helge Kreutzmann [Thu, 22 Dec 2011 16:24:56 +0000 (17:24 +0100)]
Update German translation of manual pages

Update to 2090t.

2 years agodpkg-query(1): Escape dash on field name
Guillem Jover [Thu, 22 Dec 2011 06:33:59 +0000 (07:33 +0100)]
dpkg-query(1): Escape dash on field name

Regression introduced in commit 255417d2757da6a381b563cab4ae430767e41817.

2 years agolibdpkg: Add short Description and Status virtual field variants
Guillem Jover [Sat, 17 Jul 2010 16:28:56 +0000 (18:28 +0200)]
libdpkg: Add short Description and Status virtual field variants

This adds support for show:Summary and show:Status-Abbrev virtual
output fields. They get namespaced with “show:” to not stomp over
possible fields with the same name coming from binary package or
databases, which would make them inaccessible from dpkg-query.

Closes: #192619, #427945

2 years agolibdpkg: Add new virtual fields support in package format show
Guillem Jover [Wed, 9 Nov 2011 16:43:35 +0000 (17:43 +0100)]
libdpkg: Add new virtual fields support in package format show

2 years agolibdpkg: Refactor pkg status to abbreviations mapping into new functions
Guillem Jover [Thu, 22 Dec 2011 04:21:39 +0000 (05:21 +0100)]
libdpkg: Refactor pkg status to abbreviations mapping into new functions

2 years agolibdpkg: Refactor field info find into a new function
Guillem Jover [Wed, 21 Dec 2011 02:50:16 +0000 (03:50 +0100)]
libdpkg: Refactor field info find into a new function

2 years agoUpdate German scripts translation
Helge Kreutzmann [Wed, 21 Dec 2011 21:07:42 +0000 (22:07 +0100)]
Update German scripts translation

Update to 527t.

2 years agodpkg-mergechangelogs: supplementary non-regression test
Martin Packman [Wed, 21 Dec 2011 09:14:27 +0000 (10:14 +0100)]
dpkg-mergechangelogs: supplementary non-regression test

Add a test that ensures that dpkg-mergechangelogs deals correctly
with invalid versions.

Signed-off-by: Raphaël Hertzog <>
2 years agodpkg-mergechangelogs: do not error out on invalid versions
Raphaël Hertzog [Wed, 21 Dec 2011 09:02:36 +0000 (10:02 +0100)]
dpkg-mergechangelogs: do not error out on invalid versions

The usage of version_compare() has the side effect of erroring out as
soon as you encounter an invalid version. Replacing this call
with a comparison operator invoked on Dpkg::Version objects fixes
the issue.

Closes: #651993
Reported-by: Martin Packman <>
2 years agoDpkg::Changelog::Entry::Debian: check_header() now validates the version
Raphaël Hertzog [Wed, 21 Dec 2011 08:59:39 +0000 (09:59 +0100)]
Dpkg::Changelog::Entry::Debian: check_header() now validates the version

2 years agoDpkg::Version: small documentation fix
Raphaël Hertzog [Wed, 21 Dec 2011 08:45:28 +0000 (09:45 +0100)]
Dpkg::Version: small documentation fix

Drop a part of a sentence that was incorrectly left in the documentation.

2 years agoDpkg::Source::Package: Add missing parenthesis in find_command() call
Guillem Jover [Wed, 14 Dec 2011 23:34:50 +0000 (00:34 +0100)]
Dpkg::Source::Package: Add missing parenthesis in find_command() call

Regression introduced in commit 383247f0d2dfbd3d0d6388f87869ac1abaa8b7cd.

Closes: #652113

Reported-by: Vincent Danjean <>
2 years agolibdpkg: Update reference to struct pkginfo arch member in comment
Guillem Jover [Tue, 13 Dec 2011 20:08:13 +0000 (21:08 +0100)]
libdpkg: Update reference to struct pkginfo arch member in comment

2 years agobuild: Ship .manpages debian files in the dist tarball
Guillem Jover [Mon, 12 Dec 2011 09:49:33 +0000 (10:49 +0100)]
build: Ship .manpages debian files in the dist tarball

Regression introduced in commit d7c001aa6b3d49f1542df05cde60406be2e981ec.

2 years agolibdpkg: Rename version script from libdpkg.Versions to
Guillem Jover [Sun, 11 Dec 2011 06:59:19 +0000 (07:59 +0100)]
libdpkg: Rename version script from libdpkg.Versions to

2 years agolibcompat: Add missing ‘*’ in asprintf() and vasprintf() declarations
Guillem Jover [Sun, 11 Dec 2011 05:52:34 +0000 (06:52 +0100)]
libcompat: Add missing ‘*’ in asprintf() and vasprintf() declarations

2 years agolibcompat: Do not ifdef out compatibility code definitions
Guillem Jover [Sun, 11 Dec 2011 03:54:29 +0000 (04:54 +0100)]
libcompat: Do not ifdef out compatibility code definitions

The code is already selected (or not) to be included by the Makefile
machinery, there's no need to disabled it too in the actual code, and
not doing so will allow to test it later on.

2 years agobuild: Reintroduce objdump pattern and tag test case data files
Guillem Jover [Mon, 12 Dec 2011 08:54:40 +0000 (09:54 +0100)]
build: Reintroduce objdump pattern and tag test case data files

Generating these at check time causes several problems. It requires a
system supporting versioned symbols and a GNU ld command line compatible
linker. Those are not available for example on Mac OS X.

Using libtool could have been an option to portably build the shared
libraries, although that still does not provide versioned symbols where
they are not available. The problem with libtool is that there's no sane
way to refer to the actual built shared library on the build tree.

Introduce a refresh-test-data target to be able to easily regenerate
those files when needed, e.g. when the test suite changes.

Reported-by: Stuart Ambler <>
2 years agobuild: Unroll shared library building for objdump tests
Guillem Jover [Sat, 10 Dec 2011 03:36:21 +0000 (04:36 +0100)]
build: Unroll shared library building for objdump tests

2 years agobuild: Do not normalize library name for symbol file tests
Guillem Jover [Sat, 10 Dec 2011 03:34:19 +0000 (04:34 +0100)]
build: Do not normalize library name for symbol file tests

2 years agoscripts: Move single space objdump test case into a new data file
Guillem Jover [Mon, 12 Dec 2011 08:30:39 +0000 (09:30 +0100)]
scripts: Move single space objdump test case into a new data file

This will allow to regenerate the file.

2 years agoDo not use absolute paths for programs in perl and shell code
Guillem Jover [Sat, 10 Dec 2011 02:04:57 +0000 (03:04 +0100)]
Do not use absolute paths for programs in perl and shell code

The location of programs on the filesystem is not standardized, and as
such using absolute paths is not a portable assumption to make. This
causes test suite errors on at least Mac OS X.

Use just the program name on perl system() calls, when needing the full
path use Dpkg::Path::find_command() in perl code and “which” in shell

Reported-by: Stuart Ambler <>
2 years agoDutch translation updated
Jeroen Schot [Mon, 12 Dec 2011 18:57:33 +0000 (19:57 +0100)]
Dutch translation updated

Update to 272t

2 years agoUpdate German translation of manual pages
Helge Kreutzmann [Fri, 9 Dec 2011 20:23:51 +0000 (21:23 +0100)]
Update German translation of manual pages

Update to 2090t.

2 years agoStop using brace expansion to install man pages
Guillem Jover [Thu, 8 Dec 2011 19:20:14 +0000 (20:20 +0100)]
Stop using brace expansion to install man pages

The reason for using brace expansion in the first place was due to
debhelper starting to abort on empty glob expansion, needed because
translated man pages might not be present if not complete enough.

The installation is now handled by dh_installman which does not abort
on empty glob expansion (and in fairness should have been handling
the installation from the beginning). While the result is clearly a
regression in readability and maintainability it's certainly less ugly
than an executable debhelper config file, it also does not require
bumping debhelper Build-Depends to 8.9.12.

2 years agolibdpkg: Remove unused end pointer argument from pkg_name_is_illegal()
Guillem Jover [Thu, 8 Dec 2011 21:02:36 +0000 (22:02 +0100)]
libdpkg: Remove unused end pointer argument from pkg_name_is_illegal()

2 years agolibdpkg: Rename arch_list to arch_head
Guillem Jover [Sun, 4 Dec 2011 20:14:35 +0000 (21:14 +0100)]
libdpkg: Rename arch_list to arch_head

Make the variable name consistent with other head and tail references.

2 years agolibdpkg: Use a variable to track the built-in arch list tail
Guillem Jover [Sun, 4 Dec 2011 20:13:21 +0000 (21:13 +0100)]
libdpkg: Use a variable to track the built-in arch list tail

This makes it more difficult to miss updating references to it in the
code when the built-in arch list is modified.

2 years agolibdpkg: Add new arch_empty special architecture
Guillem Jover [Thu, 1 Dec 2011 02:33:38 +0000 (03:33 +0100)]
libdpkg: Add new arch_empty special architecture

This will allow to easily distinguish an empty architecture value, while
always having an initialized architecture variable.

2 years agolibdpkg: Add new dpkg_arch_get() to retrieve special architectures
Guillem Jover [Thu, 1 Dec 2011 02:32:37 +0000 (03:32 +0100)]
libdpkg: Add new dpkg_arch_get() to retrieve special architectures

Switch dpkg_arch_get_native() to dpkg_arch_get(arch_native), and
dpkg_arch_find() calls to direct dpkg_arch_get() ones.

2 years agolibdpkg: Rename arch_type enum to dpkg_arch_type
Guillem Jover [Thu, 8 Dec 2011 20:17:49 +0000 (21:17 +0100)]
libdpkg: Rename arch_type enum to dpkg_arch_type

2 years agodpkg: Change --print-foreign-architectures to print an entry per line
Guillem Jover [Sun, 27 Nov 2011 22:53:15 +0000 (23:53 +0100)]
dpkg: Change --print-foreign-architectures to print an entry per line

Printing just a line with space separated entries makes both the code
to print and to parse slightly more complicated. The worst part comes
from parsing as the standard stream input operations require delimited
buffers, and as such if those buffers would not be enough truncation
would happen.

2 years agodselect: Do not treat licensestring as a format string
Guillem Jover [Thu, 8 Dec 2011 01:20:26 +0000 (02:20 +0100)]
dselect: Do not treat licensestring as a format string

This was spotted by a run with the clang++ static analyzer.

2 years agoMinor errors corrected in French manpages translation
Christian PERRIER [Wed, 7 Dec 2011 04:53:09 +0000 (05:53 +0100)]
Minor errors corrected in French manpages translation

2 years agodpkg: Error out if a database .list file is not a regular file
Raphaël Hertzog [Sat, 26 Nov 2011 09:26:19 +0000 (10:26 +0100)]
dpkg: Error out if a database .list file is not a regular file

LP: #369898

Signed-off-by: Guillem Jover <>
2 years agodpkg: Initialize all clientdata members in ensure_package_clientdata()
Raphaël Hertzog [Sat, 26 Nov 2011 09:03:44 +0000 (10:03 +0100)]
dpkg: Initialize all clientdata members in ensure_package_clientdata()

Although all users of replacingfilesandsaid are previously calling
clear_istobes() to make sure it's initialized, doing so when allocating
clientdata is safer from an API point of view.

Signed-off-by: Guillem Jover <>
2 years agodpkg-query: Use m_calloc() instead of m_malloc() + memset()
Guillem Jover [Fri, 2 Dec 2011 04:17:07 +0000 (05:17 +0100)]
dpkg-query: Use m_calloc() instead of m_malloc() + memset()

2 years agolibdpkg: Add new m_calloc()
Guillem Jover [Fri, 2 Dec 2011 04:13:59 +0000 (05:13 +0100)]
libdpkg: Add new m_calloc()

2 years agoFix missing dash (avoided by changing word order)
Chris Leick [Sun, 4 Dec 2011 08:46:48 +0000 (09:46 +0100)]
Fix missing dash (avoided by changing word order)

2 years agoUpdate Japanese translation of manual pages
Kenshi Muto [Tue, 29 Nov 2011 04:20:31 +0000 (13:20 +0900)]
Update Japanese translation of manual pages

    Update to 2083t1u.

2 years agoFix sub optimal translation of package states LP: #368783
Helge Kreutzmann [Mon, 28 Nov 2011 16:12:59 +0000 (17:12 +0100)]
Fix sub optimal translation of package states LP: #368783

2 years agoFix typo in dpkg-deb.1:208
Helge Kreutzmann [Mon, 28 Nov 2011 14:46:45 +0000 (15:46 +0100)]
Fix typo in dpkg-deb.1:208

2 years agoUpdate German translation of manual pages
Helge Kreutzmann [Mon, 28 Nov 2011 14:39:47 +0000 (15:39 +0100)]
Update German translation of manual pages

Update to 2089t.

2 years agoUpdate German scripts translation
Helge Kreutzmann [Mon, 28 Nov 2011 14:14:09 +0000 (15:14 +0100)]
Update German scripts translation

Update to 526t.

2 years agoMerge commit ''
Raphaël Hertzog [Fri, 25 Nov 2011 11:06:19 +0000 (12:06 +0100)]
Merge commit ''


2 years agoRelease
Raphaël Hertzog [Fri, 25 Nov 2011 10:20:03 +0000 (11:20 +0100)]

2 years agoUpdate Swedish translation.
Peter Krefting [Wed, 23 Nov 2011 17:33:59 +0000 (18:33 +0100)]
Update Swedish translation.

po/sv.po: 1033t0f0u.
scripts/po/sv.po: 526t0f0u.

2 years agoGerman dpkg translation update
Sven Joachim [Wed, 23 Nov 2011 09:31:49 +0000 (10:31 +0100)]
German dpkg translation update

Update to 1033t.

2 years agobuild: Add lib/dpkg/arch.c to
Guillem Jover [Wed, 23 Nov 2011 07:30:19 +0000 (08:30 +0100)]
build: Add lib/dpkg/arch.c to

Missed in commit 04c0362979a832bc0044d932cd1b705cef7b0d5b.

2 years agodpkg-deb: Remove undocumented compression long options
Guillem Jover [Wed, 23 Nov 2011 07:26:26 +0000 (08:26 +0100)]
dpkg-deb: Remove undocumented compression long options

At least --compress_type is bogus, and --compression might be confusing.
Remove them for now.

2 years agodpkg-deb: Add compression strategy support
Guillem Jover [Tue, 22 Nov 2011 19:32:50 +0000 (20:32 +0100)]
dpkg-deb: Add compression strategy support

The only currently supported option is “extreme” for xz.

Closes: #647915

2 years agodpkg-deb: Treat compression levels independently for each backend
Guillem Jover [Tue, 22 Nov 2011 06:09:31 +0000 (07:09 +0100)]
dpkg-deb: Treat compression levels independently for each backend

Even if the compression level allowed range supported by gzip/zlib
compatible interfaces is almost the same (0-9), its actual meaning
is backend specific, so treat it that way.

This allows to get native meanings for at least level 0, which maps
to 1 for bzip2, and becomes a new allowed level for xz and lzma.

The reason for the previous behaviour regarding level 0 is historic,
due to zlib treating it that way, and was inadvertently carried over
when new compressors were added to libdpkg.

2 years agolibdpkg: Switch compressor to take a parameters struct
Guillem Jover [Tue, 22 Nov 2011 05:50:43 +0000 (06:50 +0100)]
libdpkg: Switch compressor to take a parameters struct

2 years agolibdpkg: Constify struct compressor variables
Guillem Jover [Mon, 21 Nov 2011 03:49:32 +0000 (04:49 +0100)]
libdpkg: Constify struct compressor variables

Reduce even more the number of relocations on the shared libdpkg