aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-06-28 20:57:26 +0000
committerThierry Vignaud <tv@mageia.org>2012-06-28 20:57:26 +0000
commita0fb4406af6dc657bc7fcb911266f832bdef28e3 (patch)
tree089dac9caa545e1d7ede3065a3f68d760619155e /URPM.xs
parentf08fbba859b2c21b85c5aa7170c704271e0ca62d (diff)
downloadperl-URPM-a0fb4406af6dc657bc7fcb911266f832bdef28e3.tar
perl-URPM-a0fb4406af6dc657bc7fcb911266f832bdef28e3.tar.gz
perl-URPM-a0fb4406af6dc657bc7fcb911266f832bdef28e3.tar.bz2
perl-URPM-a0fb4406af6dc657bc7fcb911266f832bdef28e3.tar.xz
perl-URPM-a0fb4406af6dc657bc7fcb911266f832bdef28e3.zip
(rpmtag_from_string) make it clear we return a DB index
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs20
1 files changed, 10 insertions, 10 deletions
diff --git a/URPM.xs b/URPM.xs
index e4dda2a..52c18c5 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -1312,23 +1312,23 @@ static void *rpmRunTransactions_callback(__attribute__((unused)) const void *h,
return callback == td->callback_open ? fd : NULL;
}
-static rpmTag
+static rpmDbiTag
rpmtag_from_string(char *tag)
{
if (!strcmp(tag, "name"))
- return RPMTAG_NAME;
+ return RPMDBI_NAME;
else if (!strcmp(tag, "whatprovides"))
- return RPMTAG_PROVIDENAME;
+ return RPMDBI_PROVIDENAME;
else if (!strcmp(tag, "whatrequires"))
- return RPMTAG_REQUIRENAME;
+ return RPMDBI_REQUIRENAME;
else if (!strcmp(tag, "whatconflicts"))
- return RPMTAG_CONFLICTNAME;
+ return RPMDBI_CONFLICTNAME;
else if (!strcmp(tag, "group"))
- return RPMTAG_GROUP;
+ return RPMDBI_GROUP;
else if (!strcmp(tag, "triggeredby"))
- return RPMTAG_TRIGGERNAME;
+ return RPMDBI_TRIGGERNAME;
else if (!strcmp(tag, "path"))
- return RPMTAG_BASENAMES;
+ return RPMDBI_BASENAMES;
else if (!strcmp(tag, "nvra"))
return RPMTAG_NVRA;
else croak("unknown tag [%s]", tag);
@@ -2416,7 +2416,7 @@ Db_traverse_tag(db,tag,names,callback)
AV* names_av = (AV*)SvRV(names);
int len = av_len(names_av);
int i;
- rpmTag rpmtag = rpmtag_from_string(tag);
+ rpmDbiTag rpmtag = rpmtag_from_string(tag);
for (i = 0; i <= len; ++i) {
STRLEN str_len;
@@ -2450,7 +2450,7 @@ Db_traverse_tag_find(db,tag,name,callback)
Header header;
rpmdbMatchIterator mi;
CODE:
- rpmTag rpmtag = rpmtag_from_string(tag);
+ rpmDbiTag rpmtag = rpmtag_from_string(tag);
int found = 0;
rpmVSFlags ovsflags;
db->ts = rpmtsLink(db->ts);