diff options
author | Guillem Jover <guillem@debian.org> | 2011-01-31 19:17:35 +0100 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2011-01-31 19:31:02 +0100 |
commit | f3496dc24f98cea0e1da3c812e8c728c45875f48 (patch) | |
tree | d1264a21bd1537738d9f7613470a44bb808305cb /lib | |
parent | 13637ddfaf473fa5fd67264da9f38841eeed7401 (diff) | |
download | dpkg-f3496dc24f98cea0e1da3c812e8c728c45875f48.tar.gz |
libdpkg: Do not print bogus warnings when parsing status files
This is the equivalent fix in spirit as the one in commit
672b0664cbb8fd7fd5eea7ab10af1bbf6871833f, but applied to the
Architecture field instead.
Reported-by: Raphaƫl Hertzog <hertzog@debian.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/dpkg/parse.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/dpkg/parse.c b/lib/dpkg/parse.c index fc94ce5dd..58a1daf60 100644 --- a/lib/dpkg/parse.c +++ b/lib/dpkg/parse.c @@ -167,11 +167,12 @@ pkg_parse_verify(struct parsedb_state *ps, parse_ensure_have_field(ps, pkg, &pkgbin->description, "description"); parse_ensure_have_field(ps, pkg, &pkgbin->maintainer, "maintainer"); parse_must_have_field(ps, pkg, pkgbin->version.version, "version"); - } - /* We always want usable architecture information, so that it can be used - * safely on string comparisons and the like. */ - parse_ensure_have_field(ps, pkg, &pkgbin->arch, "architecture"); + /* We always want usable architecture information (as long as the package + * is in such a state that it make sense), so that it can be used safely + * on string comparisons and the like. */ + parse_ensure_have_field(ps, pkg, &pkgbin->arch, "architecture"); + } /* Check the Config-Version information: * If there is a Config-Version it is definitely to be used, but |