diff options
author | necoro <> | 2006-12-12 18:10:24 +0000 |
---|---|---|
committer | necoro <> | 2006-12-12 18:10:24 +0000 |
commit | e24a27421f04df124425499babe660db15246985 (patch) | |
tree | 87d210c6e15b98f278d8abffbdf0faf2a8a3c771 | |
parent | abfe2432678325823cbbd383b5daf3a1d5c6df87 (diff) | |
download | portato-e24a27421f04df124425499babe660db15246985.tar.gz portato-e24a27421f04df124425499babe660db15246985.tar.bz2 portato-e24a27421f04df124425499babe660db15246985.zip |
fixed small bug #3
Diffstat (limited to '')
-rw-r--r-- | portato/backend/portage_helper.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/portato/backend/portage_helper.py b/portato/backend/portage_helper.py index 10ab9fa..af8f128 100644 --- a/portato/backend/portage_helper.py +++ b/portato/backend/portage_helper.py @@ -376,14 +376,12 @@ def update_world (newuse = False, deep = False): appended = True p = old - if newuse: + if newuse and p.is_in_system(): # there is no use to check newuse for a package which is not existing anymore in portage :) new_iuse = set(p.get_all_use_flags(installed = False)) # IUSE in the ebuild old_iuse = set(p.get_all_use_flags(installed = True)) # IUSE in the vardb if new_iuse.symmetric_difference(old_iuse): # difference between new_iuse and old_iuse - debug(p.get_cpv(),"old:",old_iuse) - debug(p.get_cpv(),"new:",new_iuse) tempDeep = True if not appended: updating.append((p,p)) @@ -407,7 +405,9 @@ def update_world (newuse = False, deep = False): if not bm: debug("Bug? No best match could be found:",i) else: - for p in bm: check(p) + for p in bm: + if not p: continue + check(p) for p in get_new_packages(packages): if not p: continue # if a masked package is installed we have "None" here |