...and use saveOrig() for src.rpm relocations too

This commit is contained in:
Panu Matilainen 2013-11-15 13:14:49 +02:00
parent c7314f321d
commit fd70ef48a6
1 changed files with 2 additions and 15 deletions

View File

@ -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);