Blame rpm-4.11.90-hardlink-groups.patch
|
Panu Matilainen |
44dace |
commit c64a4b54dd16537ad0c609037e96d295a60d9ace
|
|
Panu Matilainen |
44dace |
Author: Florian Festi <ffesti@redhat.com>
|
|
Panu Matilainen |
44dace |
Date: Mon Jun 30 13:30:38 2014 +0200
|
|
Panu Matilainen |
44dace |
|
|
Panu Matilainen |
44dace |
Fix handling of hardlinks during rpmbuild
|
|
Panu Matilainen |
44dace |
|
|
Panu Matilainen |
44dace |
After looping over the hardlinks and writing their headers entries to the
|
|
Panu Matilainen |
44dace |
archive we need to return to the first entry to make sure we do not leave out
|
|
Panu Matilainen |
44dace |
other groups of hardlinked files that start between the group we are currently
|
|
Panu Matilainen |
44dace |
processing
|
|
Panu Matilainen |
44dace |
|
|
Panu Matilainen |
44dace |
(cherry picked from commit b7b8b3343f8668f77baf8f2cddbdd99d9d62c1f4)
|
|
Panu Matilainen |
44dace |
|
|
Panu Matilainen |
44dace |
diff --git a/lib/rpmfi.c b/lib/rpmfi.c
|
|
Panu Matilainen |
44dace |
index 27186dd..ed51d44 100644
|
|
Panu Matilainen |
44dace |
--- a/lib/rpmfi.c
|
|
Panu Matilainen |
44dace |
+++ b/lib/rpmfi.c
|
|
Panu Matilainen |
44dace |
@@ -1819,6 +1819,7 @@ static int iterWriteArchiveNextFile(rpmfi fi)
|
|
Panu Matilainen |
44dace |
return rc;
|
|
Panu Matilainen |
44dace |
}
|
|
Panu Matilainen |
44dace |
}
|
|
Panu Matilainen |
44dace |
+ rpmfiSetFX(fi, hardlinks[0]);
|
|
Panu Matilainen |
44dace |
} else {
|
|
Panu Matilainen |
44dace |
int rc = rpmfiArchiveWriteHeader(fi);
|
|
Panu Matilainen |
44dace |
if (rc) {
|