Oops, forgot to add the instfilenames pseudo index to tag lookup code
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 31 Aug 2011 08:07:32 +0000 (11:07 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 31 Aug 2011 08:07:32 +0000 (11:07 +0300)
- DBI tags dont really belong there to begin with but changing this
  would be more painful than its worth...

lib/tagname.c

index 0c26968..abcae1c 100644 (file)
@@ -129,6 +129,9 @@ static const char * _tagName(rpmTagVal tag)
     case RPMDBI_PACKAGES:
        name = "Packages";
        break;
+    case RPMDBI_INSTFILENAMES:
+       name = "Instfilenames";
+       break;
     /* XXX make sure rpmdb indices are identically named. */
     case RPMTAG_CONFLICTS:
        name = "Conflictname";
@@ -209,6 +212,8 @@ static rpmTagVal _tagValue(const char * tagstr)
 
     if (!rstrcasecmp(tagstr, "Packages"))
        return RPMDBI_PACKAGES;
+    if (!rstrcasecmp(tagstr, "Instfilenames"))
+       return RPMDBI_INSTFILENAMES;
 
     if (_rpmTags.byName == NULL)
        tagLoadIndex(&_rpmTags.byName, &_rpmTags.byNameSize, tagCmpName);