...and use saveOrig() for src.rpm relocations too
This commit is contained in:
parent
c7314f321d
commit
fd70ef48a6
|
@ -436,22 +436,9 @@ int rpmRelocateSrpmFileList(Header h, const char *rootDir)
|
|||
|
||||
if (specix >= 0) {
|
||||
const char *bn;
|
||||
struct rpmtd_s td, filenames;
|
||||
struct rpmtd_s filenames;
|
||||
/* save original file names */
|
||||
headerGet(h, RPMTAG_BASENAMES, &td, HEADERGET_MINMEM);
|
||||
rpmtdSetTag(&td, RPMTAG_ORIGBASENAMES);
|
||||
headerPut(h, &td, HEADERPUT_DEFAULT);
|
||||
rpmtdFreeData(&td);
|
||||
|
||||
headerGet(h, RPMTAG_DIRNAMES, &td, HEADERGET_MINMEM);
|
||||
rpmtdSetTag(&td, RPMTAG_ORIGDIRNAMES);
|
||||
headerPut(h, &td, HEADERPUT_DEFAULT);
|
||||
rpmtdFreeData(&td);
|
||||
|
||||
headerGet(h, RPMTAG_DIRINDEXES, &td, HEADERGET_MINMEM);
|
||||
rpmtdSetTag(&td, RPMTAG_ORIGDIRINDEXES);
|
||||
headerPut(h, &td, HEADERPUT_DEFAULT);
|
||||
rpmtdFreeData(&td);
|
||||
saveOrig(h);
|
||||
|
||||
headerDel(h, RPMTAG_BASENAMES);
|
||||
headerDel(h, RPMTAG_DIRNAMES);
|
||||
|
|
Loading…
Reference in New Issue