summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2007-09-20 15:09:52 +0300
committerPanu Matilainen <pmatilai@redhat.com>2007-09-20 15:09:52 +0300
commit3b8da4ed118c6da6dab1cb7c0ecd0933c6d14f14 (patch)
treef1e29034af384acc2a63ab7cd5e7fcf423c6d6a5 /tools
parentbbf7574d7f368e8d11600b54dfd24a0dafd555fb (diff)
downloadrpm-3b8da4ed118c6da6dab1cb7c0ecd0933c6d14f14.tar.gz
rpm-3b8da4ed118c6da6dab1cb7c0ecd0933c6d14f14.tar.bz2
rpm-3b8da4ed118c6da6dab1cb7c0ecd0933c6d14f14.zip
Rename tagName/Value/Type() to rpmTagGet*()
- namespacing - avoid collisions with tagtype definitions
Diffstat (limited to 'tools')
-rw-r--r--tools/rpminject.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/rpminject.c b/tools/rpminject.c
index d071af53d..b44c4871c 100644
--- a/tools/rpminject.c
+++ b/tools/rpminject.c
@@ -311,19 +311,19 @@ headerInject(Header *hdrp, cmd_t *cmds[], int ncmds)
switch(c->injmode) {
case INJ_ADD:
if (!(rc && c->done > 0)) {
- warnx(_("failed to add tag %s"), tagName(c->tagval));
+ warnx(_("failed to add tag %s"), rpmTagGetName(c->tagval));
ec = 1;
}
break;
case INJ_DELETE:
if (!(!rc && c->done > 0)) {
- warnx(_("failed to delete tag %s"), tagName(c->tagval));
+ warnx(_("failed to delete tag %s"), rpmTagGetName(c->tagval));
ec = 1;
}
break;
case INJ_MODIFY:
if (!(rc && c->done > 0)) {
- warnx(_("failed to modify tag %s"), tagName(c->tagval));
+ warnx(_("failed to modify tag %s"), rpmTagGetName(c->tagval));
ec = 1;
}
break;
@@ -499,7 +499,7 @@ main(int argc, char *argv[])
cmds[ncmds]->injmode = cmds[ncmds-1]->injmode;
ncmds++;
}
- c->tagval = tagValue(optArg);
+ c->tagval = rpmTagGetValue(optArg);
if (!((c->tagval >= RPMTAG_NAME && c->tagval < RPMTAG_FIRSTFREE_TAG)
|| c->tagval >= RPMTAG_EXTERNAL_TAG))
errx(EXIT_FAILURE, _("unknown rpm tag \"--tag %s\""), optArg);