<p>I'm working on some custom rpm-ostree code to "install" rpms by<br>
unpacking them with libarchive (since this can be a lot safer than<br>
invoking librpm - my process has total control over writes), then just<br>
using librpm to update the database via _JUSTDB.</p>

<p>However, it appears that for some reason that if the transaction is<br>
not _TEST, we attempt to reload the header from the original package<br>
here.  I don't have the original package, just the header, since they<br>
get unpacked into OSTree commits (with the header as ostree commit<br>
metadata).</p>

<p>Now, I don't understand why we re-parse the RPM - what's wrong with<br>
the original header we loaded?, but it fixes the problem for me to<br>
also skip with _JUSTDB, and should be a very low risk change.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/rpm-software-management/rpm/pull/52'>https://github.com/rpm-software-management/rpm/pull/52</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>te: Don't reload header for JUSTDB transactions</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/rpm-software-management/rpm/pull/52/files#diff-0">lib/rpmte.c</a>
    (62)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/rpm-software-management/rpm/pull/52.patch'>https://github.com/rpm-software-management/rpm/pull/52.patch</a></li>
  <li><a href='https://github.com/rpm-software-management/rpm/pull/52.diff'>https://github.com/rpm-software-management/rpm/pull/52.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/rpm-software-management/rpm/pull/52">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ANb80zzALsRJJfD6q2qeq6sYJpzHFtSkks5pcYjbgaJpZM4HKC9D.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/rpm-software-management/rpm/pull/52"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>