[Rpm-maint] [rpm] te: Don't reload header for JUSTDB transactions (#52)
Colin Walters
notifications at github.com
Fri Jan 22 02:18:03 UTC 2016
I'm working on some custom rpm-ostree code to "install" rpms by
unpacking them with libarchive (since this can be a lot safer than
invoking librpm - my process has total control over writes), then just
using librpm to update the database via _JUSTDB.
However, it appears that for some reason that if the transaction is
not _TEST, we attempt to reload the header from the original package
here. I don't have the original package, just the header, since they
get unpacked into OSTree commits (with the header as ostree commit
metadata).
Now, I don't understand why we re-parse the RPM - what's wrong with
the original header we loaded?, but it fixes the problem for me to
also skip with _JUSTDB, and should be a very low risk change.
You can view, comment on, or merge this pull request online at:
https://github.com/rpm-software-management/rpm/pull/52
-- Commit Summary --
* te: Don't reload header for JUSTDB transactions
-- File Changes --
M lib/rpmte.c (62)
-- Patch Links --
https://github.com/rpm-software-management/rpm/pull/52.patch
https://github.com/rpm-software-management/rpm/pull/52.diff
---
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/52
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20160121/45466dd6/attachment.html>
More information about the Rpm-maint
mailing list