Michael Schröder
a406c1d81a
OBS-URL: https://build.opensuse.org/package/show/Base:System/rpm?expand=0&rev=338
19 lines
726 B
Diff
19 lines
726 B
Diff
--- ./lib/psm.c.orig 2014-08-04 12:51:13.219051031 +0000
|
|
+++ ./lib/psm.c 2014-08-04 12:57:38.294335406 +0000
|
|
@@ -673,8 +673,15 @@ static rpmRC rpmpsmUnpack(rpmpsm psm)
|
|
|
|
if (!(rpmtsFlags(psm->ts) & RPMTRANS_FLAG_JUSTDB)) {
|
|
if (rpmfilesFC(psm->files) > 0) {
|
|
+ rpmtransFlags oldtsflags = rpmtsFlags(psm->ts);
|
|
+ Header h = rpmteHeader(psm->te);
|
|
+ if (h && headerIsEntry(h, RPMTAG_REMOVETID))
|
|
+ (void) rpmtsSetFlags(psm->ts, oldtsflags | RPMTRANS_FLAG_NOMD5);
|
|
fsmrc = rpmPackageFilesInstall(psm->ts, psm->te, psm->files,
|
|
psm, &failedFile);
|
|
+ if (h && headerIsEntry(h, RPMTAG_REMOVETID))
|
|
+ (void) rpmtsSetFlags(psm->ts, oldtsflags);
|
|
+ headerFree(h);
|
|
saved_errno = errno;
|
|
}
|
|
}
|