From: Panu Matilainen Date: Thu, 24 Apr 2008 13:48:32 +0000 (+0300) Subject: Might as well compare against tag shortname now that we have it X-Git-Tag: rpm-4.6.0-rc1~763 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c55f6b0a939cb63a07cc9bf227b5b25372dee59e;p=platform%2Fupstream%2Frpm.git Might as well compare against tag shortname now that we have it --- diff --git a/rpmdb/tagname.c b/rpmdb/tagname.c index 93ec5f6..2ea0a96 100644 --- 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->shortname != 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;