projects
/
tools
/
librpm-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d97ba0b
)
Might as well compare against tag shortname now that we have it
author
Panu Matilainen
<pmatilai@redhat.com>
Thu, 24 Apr 2008 13:48:32 +0000
(16:48 +0300)
committer
Panu Matilainen
<pmatilai@redhat.com>
Thu, 24 Apr 2008 13:48:32 +0000
(16:48 +0300)
rpmdb/tagname.c
patch
|
blob
|
history
diff --git
a/rpmdb/tagname.c
b/rpmdb/tagname.c
index
93ec5f6
..
2ea0a96
100644
(file)
--- a/
rpmdb/tagname.c
+++ b/
rpmdb/tagname.c
@@
-160,7
+160,7
@@
static const char * _tagName(rpmTag tag)
i--;
}
t = _rpmTags.byValue[i];
- if (t->name != NULL)
+ if (t->
short
name != NULL)
name = t->shortname;
break;
}
@@
-252,7
+252,7
@@
static rpmTag _tagValue(const char * tagstr)
i = (l + u) / 2;
t = _rpmTags.byName[i];
- comparison = rstrcasecmp(tagstr, t->
name + (sizeof("RPMTAG_")-1)
);
+ comparison = rstrcasecmp(tagstr, t->
shortname
);
if (comparison < 0)
u = i;