_unmerge_pkgfiles: improve out-of-prefix unmerging check
authorFabian Groffen <grobian@gentoo.org>
Tue, 30 Nov 2010 18:40:07 +0000 (19:40 +0100)
committerFabian Groffen <grobian@gentoo.org>
Tue, 30 Nov 2010 18:40:07 +0000 (19:40 +0100)
commit8faf55a8aec8f83e27a3254914772ca633480263
treeb83d63b604fb7c064f230bed99ba50eba2166faa
parentcb842e57256f9499053de3c855fd52d0ff47ce6a
_unmerge_pkgfiles: improve out-of-prefix unmerging check

Bug #345633 is likely caused by a corrupted/invalid CONTENTS entry (from
previous buggy Portage releases).  It shows, however, that the unmerge
code wasn't protected well enough against "unmerging" files outside of
the Prefix.  All entries are evaluated now to see if they are within the
Prefix and a warning is issued when they are not, preventing any further
actions to be taken.
pym/portage/dbapi/vartree.py