summaryrefslogtreecommitdiff
path: root/src/enquiry.c
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 /src/enquiry.c
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.
Diffstat (limited to 'src/enquiry.c')
-rw-r--r--src/enquiry.c2
1 files changed, 1 insertions, 1 deletions
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,