This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch master in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=12dc155b63be057af5a1c6330106e496aeae3ee4 commit 12dc155b63be057af5a1c6330106e496aeae3ee4 Author: Guillem Jover <[email protected]> AuthorDate: Mon Feb 18 03:53:16 2019 +0100 libdpkg: Use pkg_set_want() instead of a direct assignment --- debian/changelog | 1 + lib/dpkg/parse.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 29e6c0983..7d69fbaed 100644 --- a/debian/changelog +++ b/debian/changelog @@ -60,6 +60,7 @@ dpkg (1.19.5) UNRELEASED; urgency=medium - libdpkg: Use va_arg copy instead of the original on a vasprintf() call. - libdpkg: Include <string.h> in pager.c. Reported by Y <[email protected]>. Closes: #922212 + - libdpkg: Use pkg_set_want() instead of a direct assignment. * Build system: - Check whether this dist is a release, based only on the version format. This will avoid having to do a two staged release to get a proper perl diff --git a/lib/dpkg/parse.c b/lib/dpkg/parse.c index b5e8a37c7..863e42644 100644 --- a/lib/dpkg/parse.c +++ b/lib/dpkg/parse.c @@ -291,7 +291,7 @@ pkg_parse_verify(struct parsedb_state *ps, pkg->eflag == PKG_EFLAG_OK && pkg->want == PKG_WANT_INSTALL && pkgbin->arch->type == DPKG_ARCH_EMPTY) - pkg->want = PKG_WANT_UNKNOWN; + pkg_set_want(pkg, PKG_WANT_UNKNOWN); } struct pkgcount { -- Dpkg.Org's dpkg

