summaryrefslogtreecommitdiff
path: root/lib/rpmte.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-01-05 15:02:34 +0200
committerPanu Matilainen <pmatilai@redhat.com>2009-01-05 15:02:34 +0200
commit36541e3b99afefa86ee6cd285aa2927be26e7d0d (patch)
tree48eeb5a89a9e7a20f614914e2eba3ee730d2c1ac /lib/rpmte.c
parent0ab10fbf3f9e3432f180f1033b4900e2d0521657 (diff)
downloadrpm-36541e3b99afefa86ee6cd285aa2927be26e7d0d.tar.gz
rpm-36541e3b99afefa86ee6cd285aa2927be26e7d0d.tar.bz2
rpm-36541e3b99afefa86ee6cd285aa2927be26e7d0d.zip
Relocation needs to be called even if no relocs specified
- relocatable packages expect RPM_INSTALL_PREFIX in scriptlets even default prefix is used, relocation adds RPMTAG_INSTPREFIXES
Diffstat (limited to 'lib/rpmte.c')
-rw-r--r--lib/rpmte.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rpmte.c b/lib/rpmte.c
index dd422f179..6c4c60890 100644
--- a/lib/rpmte.c
+++ b/lib/rpmte.c
@@ -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);
}