Transaction element file info can be legally NULL in some cases
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 21 Mar 2012 07:07:21 +0000 (09:07 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 21 Mar 2012 07:07:21 +0000 (09:07 +0200)
commit2f20f6e6b2cc6f26794678d1db16659c484a001c
tree3f48221f5dc8a3d963880115223ca43ecda5a2d4
parent274dbf557d1cac90f7c278f9b6d6af05997d92df
Transaction element file info can be legally NULL in some cases

- rpmteClose() will wipe out the file info to free memory, we only
  should care whether we failed to (re)load the file info. This
  thinko in commit 06a2f1269b035a3a76464149834f2a5a8c4e89f2
  broke %posttrans scriptlets (and without commit
  274dbf557d1cac90f7c278f9b6d6af05997d92df, %pretrans in other
  circumstances), whoopsie *blush*. Now, off to write a test-case
  for our scriptlet behavior...
lib/rpmte.c