73d87ec7a2
Copy from Base:System/rpm based on submit request 19545 from user mlschroe OBS-URL: https://build.opensuse.org/request/show/19545 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rpm?expand=0&rev=86
22 lines
673 B
Diff
22 lines
673 B
Diff
Index: build/files.c
|
|
===================================================================
|
|
--- build/files.c.orig
|
|
+++ build/files.c
|
|
@@ -1742,9 +1742,13 @@ static rpmRC processPackageFiles(rpmSpec
|
|
|
|
argvSplit(&filelists, getStringBuf(pkg->fileFile), "\n");
|
|
for (fp = filelists; *fp != NULL; fp++) {
|
|
- ffn = rpmGetPath("%{_builddir}/",
|
|
- (spec->buildSubdir ? spec->buildSubdir : "") ,
|
|
- "/", *fp, NULL);
|
|
+ if (**fp == '/') {
|
|
+ ffn = rpmGetPath(*fp, NULL);
|
|
+ } else {
|
|
+ ffn = rpmGetPath("%{_builddir}/",
|
|
+ (spec->buildSubdir ? spec->buildSubdir : "") ,
|
|
+ "/", *fp, NULL);
|
|
+ }
|
|
fd = fopen(ffn, "r");
|
|
|
|
if (fd == NULL || ferror(fd)) {
|