pack.c: print payload compression string

Given that downgradeLzmaLevel can change the payload compression,
it's useful to have this diagnostics in the output produced by rpmbuild.
This commit is contained in:
Дмитрий Левин 2020-12-19 22:43:47 +00:00
parent b295de5893
commit b6d1778c72

View File

@ -602,7 +602,6 @@ int writeRPM(Header *hdrp, const char *fileName, int type,
rpmError(RPMERR_BADARG, _("Bad CSA data\n"));
}
}
rpmio_flags = _free(rpmio_flags);
if (rc)
goto exit;
@ -800,10 +799,12 @@ exit:
}
if (rc == 0)
rpmMessage(RPMMESS_NORMAL, _("Wrote: %s\n"), fileName);
rpmMessage(RPMMESS_NORMAL, _("Wrote: %s (%s)\n"),
fileName, rpmio_flags);
else
(void) Unlink(fileName);
rpmio_flags = _free(rpmio_flags);
return rc;
}