This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch main in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=a20967f80608665baf15ba5ef25233a1571c31aa commit a20967f80608665baf15ba5ef25233a1571c31aa Author: Guillem Jover <[email protected]> AuthorDate: Mon Mar 28 20:19:40 2022 +0200 libdpkg: Add missing dependency type to obsolete dependency fields When converting from the old nicknames remapping handling to the normal fieldsinfo structures, the dependency fields did not get assigned their respective «enum deptype» value. These were defaulting to the 0 value which happens to be dep_suggests, so only the «Recommended» field was being mapped incorrectly. Fixes: commit 3a017177110da9f54668b614f78aeb98bf73796d --- lib/dpkg/parse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dpkg/parse.c b/lib/dpkg/parse.c index 873ef0699..f2a36db0a 100644 --- a/lib/dpkg/parse.c +++ b/lib/dpkg/parse.c @@ -85,8 +85,8 @@ const struct fieldinfo fieldinfos[]= { { FIELD("Triggers-Pending"), f_trigpend, w_trigpend }, { FIELD("Triggers-Awaited"), f_trigaw, w_trigaw }, /* Note that aliases are added to the nicknames table. */ - { FIELD("Recommended"), f_obs_dependency, w_null }, - { FIELD("Optional"), f_obs_dependency, w_null }, + { FIELD("Recommended"), f_obs_dependency, w_null, dep_recommends }, + { FIELD("Optional"), f_obs_dependency, w_null, dep_suggests }, { FIELD("Class"), f_obs_class, w_null }, { FIELD("Revision"), f_obs_revision, w_null }, { FIELD("Package-Revision"), f_obs_revision, w_null }, -- Dpkg.Org's dpkg

