2011-05-16 18:07:44 +02:00
|
|
|
Don't complain about a bad md5 sum for repackaged rpms.
|
|
|
|
|
2013-07-12 16:11:14 +02:00
|
|
|
--- ./lib/psm.c.orig 2013-07-12 12:05:15.000000000 +0000
|
|
|
|
+++ ./lib/psm.c 2013-07-12 12:07:59.000000000 +0000
|
2012-08-28 15:31:44 +02:00
|
|
|
@@ -813,12 +813,17 @@ static rpmRC rpmpsmStage(rpmpsm psm, pkg
|
|
|
|
rpmpsmNotify(psm, RPMCALLBACK_INST_PROGRESS, 0);
|
2010-03-26 16:30:18 +01:00
|
|
|
|
2012-08-28 15:31:44 +02:00
|
|
|
if (rpmfiFC(fi) > 0 && !(rpmtsFlags(ts) & RPMTRANS_FLAG_JUSTDB)) {
|
|
|
|
+ rpmtransFlags oldtsflags;
|
|
|
|
FD_t payload = rpmtePayload(psm->te);
|
|
|
|
if (payload == NULL) {
|
|
|
|
rc = RPMRC_FAIL;
|
|
|
|
break;
|
|
|
|
}
|
2010-03-26 16:30:18 +01:00
|
|
|
|
2012-08-28 15:31:44 +02:00
|
|
|
+ oldtsflags = rpmtsFlags(ts);
|
|
|
|
+ if (headerIsEntry(fi->h, RPMTAG_REMOVETID))
|
|
|
|
+ (void) rpmtsSetFlags(ts, oldtsflags | RPMTRANS_FLAG_NOMD5);
|
|
|
|
+
|
2013-07-12 16:11:14 +02:00
|
|
|
fsmrc = rpmPackageFilesInstall(psm->ts, psm->te, psm->fi,
|
|
|
|
payload, psm, &psm->failedFile);
|
2012-08-28 15:31:44 +02:00
|
|
|
|
|
|
|
@@ -827,6 +832,9 @@ static rpmRC rpmpsmStage(rpmpsm psm, pkg
|
|
|
|
rpmswAdd(rpmtsOp(psm->ts, RPMTS_OP_DIGEST),
|
|
|
|
fdOp(payload, FDSTAT_DIGEST));
|
2010-03-26 16:30:18 +01:00
|
|
|
|
2012-08-28 15:31:44 +02:00
|
|
|
+ if (headerIsEntry(fi->h, RPMTAG_REMOVETID))
|
|
|
|
+ (void) rpmtsSetFlags(ts, oldtsflags);
|
|
|
|
+
|
|
|
|
Fclose(payload);
|
|
|
|
}
|
2010-03-26 16:30:18 +01:00
|
|
|
|