Use type-specific headerPut() for the case where it makes sense in relocs
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 19 Jun 2008 12:52:19 +0000 (15:52 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Thu, 19 Jun 2008 12:52:19 +0000 (15:52 +0300)
lib/rpmfi.c

index afee0fb..5d15aad 100644 (file)
@@ -834,11 +834,8 @@ assert(p != NULL);
        }
 
        if (numActual) {
-           struct rpmtd_s pfx;
-           if (rpmtdFromStringArray(&pfx, RPMTAG_INSTPREFIXES, 
-                                    actualRelocations, numActual)) {
-               headerPut(h, &pfx, HEADERPUT_DEFAULT);
-           }
+           headerPutStringArray(h, RPMTAG_INSTPREFIXES,
+                                    actualRelocations, numActual);
        }
 
        actualRelocations = _free(actualRelocations);