projects
/
tools
/
librpm-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ab10fb
)
Relocation needs to be called even if no relocs specified
author
Panu Matilainen
<pmatilai@redhat.com>
Mon, 5 Jan 2009 13:02:34 +0000
(15:02 +0200)
committer
Panu 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
patch
|
blob
|
history
diff --git
a/lib/rpmte.c
b/lib/rpmte.c
index
dd422f1
..
6c4c608
100644
(file)
--- 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);
}