Relocation needs to be called even if no relocs specified
authorPanu Matilainen <pmatilai@redhat.com>
Mon, 5 Jan 2009 13:02:34 +0000 (15:02 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Mon, 5 Jan 2009 13:02:34 +0000 (15:02 +0200)
- relocatable packages expect RPM_INSTALL_PREFIX in scriptlets even
  default prefix is used, relocation adds RPMTAG_INSTPREFIXES

lib/rpmte.c

index dd422f1..6c4c608 100644 (file)
@@ -128,7 +128,7 @@ static rpmfi getFI(rpmte p, rpmts ts, Header h)
                                      (RPMFI_NOHEADER | RPMFI_FLAGS_ERASE);
 
     /* relocate stuff in header if necessary */
-    if (rpmteType(p) == TR_ADDED && p->relocs) {
+    if (rpmteType(p) == TR_ADDED) {
        if (!headerIsSource(h) && !headerIsEntry(h, RPMTAG_ORIGBASENAMES)) {
            rpmRelocateFileList(ts, p, p->relocs, p->nrelocs, h);
        }