Put transaction element "self" dependency set into global pool too
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 13 Sep 2012 08:18:23 +0000 (11:18 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Thu, 13 Sep 2012 08:18:56 +0000 (11:18 +0300)
lib/rpmte.c

index 8e85052..7154254 100644 (file)
@@ -243,7 +243,7 @@ static int addTE(rpmte p, Header h, fnpyKey key, rpmRelocation * relocs)
     p->headerSize = headerSizeof(h, HEADER_MAGIC_NO);
 
     /* XXX thisds not in global pool yet, but not strictly needed either */
-    p->thisds = rpmdsThis(h, RPMTAG_PROVIDENAME, RPMSENSE_EQUAL);
+    p->thisds = rpmdsThisPool(tspool, h, RPMTAG_PROVIDENAME, RPMSENSE_EQUAL);
     p->provides = rpmdsNewPool(tspool, h, RPMTAG_PROVIDENAME, 0);
     p->requires = rpmdsNewPool(tspool, h, RPMTAG_REQUIRENAME, 0);
     p->conflicts = rpmdsNewPool(tspool, h, RPMTAG_CONFLICTNAME, 0);