diff options
author | necoro <> | 2007-01-24 23:44:31 +0000 |
---|---|---|
committer | necoro <> | 2007-01-24 23:44:31 +0000 |
commit | e0c70e1133b12341a9f14f68e00a44c1a7ea5a18 (patch) | |
tree | 5c6a556633ba872cc199412592e6c1cd79334ece /portato/backend/portage | |
parent | 3a1d0db1f30133bae568341428d427cf5a5d0495 (diff) | |
download | portato-e0c70e1133b12341a9f14f68e00a44c1a7ea5a18.tar.gz portato-e0c70e1133b12341a9f14f68e00a44c1a7ea5a18.tar.bz2 portato-e0c70e1133b12341a9f14f68e00a44c1a7ea5a18.zip |
Small enhancements
Diffstat (limited to '')
-rw-r--r-- | portato/backend/portage_helper.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/portato/backend/portage_helper.py b/portato/backend/portage_helper.py index 6cfe25a..a215b51 100644 --- a/portato/backend/portage_helper.py +++ b/portato/backend/portage_helper.py @@ -352,7 +352,7 @@ def update_world (newuse = False, deep = False): checked = [] updating = [] raw_checked = [] - def check (p, warn_no_installed = True): + def check (p, add_not_installed = True): """Checks whether a package is updated or not.""" if p.get_cp() in checked: return else: checked.append(p.get_cp()) @@ -367,16 +367,18 @@ def update_world (newuse = False, deep = False): else: oldList = sort_package_list(find_installed_packages(p.get_cp())) if not oldList: - if warn_no_installed: - debug("Bug? Not found installed one:",p.get_cp()) - return + if add_not_installed: + debug("Not found installed",p.get_cpv(),"==> adding") + oldList = [p] + else: + return old = oldList[-1] updating.append((p, old)) appended = True p = old - if newuse and p.is_in_system(): # there is no use to check newuse for a package which is not existing in portage anymore :) + if newuse and p.is_installed() and p.is_in_system(): # there is no use to check newuse for a package which is not existing in portage anymore :) 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 |