diff options
author | Per Øyvind Karlsen <peroyvind@mandriva.org> | 2010-12-17 23:45:02 +0000 |
---|---|---|
committer | Per Øyvind Karlsen <peroyvind@mandriva.org> | 2010-12-17 23:45:02 +0000 |
commit | 3bbeb72d543d9a5cb75d4053ade6252fa5e73445 (patch) | |
tree | feee9a8666b2238bf2549fcc8f0ddd6a9bb376b1 | |
parent | c1c66c801514e3c6a1f1242994174cadbc37b5c4 (diff) | |
download | perl-URPM-3bbeb72d543d9a5cb75d4053ade6252fa5e73445.tar perl-URPM-3bbeb72d543d9a5cb75d4053ade6252fa5e73445.tar.gz perl-URPM-3bbeb72d543d9a5cb75d4053ade6252fa5e73445.tar.bz2 perl-URPM-3bbeb72d543d9a5cb75d4053ade6252fa5e73445.tar.xz perl-URPM-3bbeb72d543d9a5cb75d4053ade6252fa5e73445.zip |
fix RPMQV_* enums not mapped to RPMTAG_* in rpmtag_from_string()
-rw-r--r-- | URPM.xs | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -233,6 +233,14 @@ rpmtag_from_string(const char *tag) qv_c = NULL; static const char tag_context[] = "rpmtag", qv_context[] = "rpmqvsources"; + /* XXX: rpmcli.h: @todo Reassign to tag values. */ + if (!strcmp(tag, "whatprovides")) + return RPMTAG_PROVIDENAME; + else if (!strcmp(tag, "whatrequires")) + return RPMTAG_REQUIRENAME; + else if (!strcmp(tag, "path")) + return RPMTAG_BASENAMES; + if(tag_c == NULL) { tag_c = rpmconstNew(); if(!rpmconstInitToContext(tag_c, tag_context)) |