Fix package relocatability checking, broken since forever
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 9 Jul 2009 11:01:13 +0000 (14:01 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Thu, 9 Jul 2009 11:01:13 +0000 (14:01 +0300)
commitbcb71f69d2524ee51535c50b51ae6b4aa133abc8
tree325ba37e66611c4bd25467daf932a5be7ac77f75
parent7c512db91281a53f1dc783732e310f311382ae8c
Fix package relocatability checking, broken since forever
- at the time relocation problems are added, ts problem set is NULL
  and rpmtsCheck() wipes it out anyway so the problems from relocation
  are never seen anywhere
- The header isn't available at transaction prepare stage where most
  problems are checked for, so we can't validate the prefixes at that
  point. Add a per-element problem set to carry the problem data and
  merge it to ts problem set when checking for other problem types.
lib/rpmte.c
lib/rpmte_internal.h
lib/transaction.c