summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2015-02-09 19:54:18 +0100
committerGuillem Jover <guillem@debian.org>2015-02-11 04:42:41 +0100
commitb7c8836813228c4d7517dde292df7bca835ab0bb (patch)
tree5d8711dc3a060f5ab8db6b2b6d885e7044dad27e
parent753374a4e1fbbd013127b5c8cb832c7014f479a1 (diff)
downloaddpkg-b7c8836813228c4d7517dde292df7bca835ab0bb.tar.gz
dpkg: Fix --audit to report missing and empty architecture fields
The parser always converts the value from DPKG_ARCH_NONE to DPKG_ARCH_EMPTY, so we will handle both here to avoid any such problem in the future. Regression introduced in commit 0238c795df88925c6579f740c7681ade22e88625.
-rw-r--r--debian/changelog2
-rw-r--r--src/enquiry.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index e7e202cf8..ceff59e90 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -70,6 +70,8 @@ dpkg (1.18.0) UNRELEASED; urgency=low
* Fix short-lived memory leaks in dpkg-deb and libdpkg. Closes: #769515
* Fix «dpkg-deb -b» filename generation when the package does not contain
an Architecture field. Regression introduced in dpkg 1.16.2.
+ * Fix «dpkg --audit» to report missing and empty architecture fields.
+ Regression introduced in dpkg 1.16.2.
[ Updated manpages translations ]
* German (Helge Kreutzmann).
diff --git a/src/enquiry.c b/src/enquiry.c
index f135b1708..6695bbfd1 100644
--- a/src/enquiry.c
+++ b/src/enquiry.c
@@ -143,7 +143,7 @@ static const struct audit_problem audit_problems[] = {
"database, they need to be reinstalled:\n")
}, {
.check = audit_arch,
- .value.number = DPKG_ARCH_NONE,
+ .value.number = DPKG_ARCH_EMPTY,
.explanation = N_("The following packages do not have an architecture:\n")
}, {
.check = audit_arch,