diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2009-01-28 21:43:18 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2009-01-28 21:43:18 +0100 |
commit | 3d248edb873d90f77798a31a5287f947b9579913 (patch) | |
tree | cd7b295ce61558c1dde999e7f3c3ad90a9e982df /portato/backend | |
parent | 1e15be78f10ea1fbcc33d7b8dfe42433f447092d (diff) | |
download | portato-3d248edb873d90f77798a31a5287f947b9579913.tar.gz portato-3d248edb873d90f77798a31a5287f947b9579913.tar.bz2 portato-3d248edb873d90f77798a31a5287f947b9579913.zip |
Fix blocking behavior. Ignore blocks where no existing packages are affected.
Diffstat (limited to '')
-rw-r--r-- | portato/backend/portage/package.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/portato/backend/portage/package.py b/portato/backend/portage/package.py index 2c913f9..e1813bf 100644 --- a/portato/backend/portage/package.py +++ b/portato/backend/portage/package.py @@ -222,11 +222,14 @@ class PortagePackage (Package): continue if return_blocks: + if not blocked: + if not system.find_packages(dep, masked = True): continue # well - no packages affected - ignore + if with_criterions: dep_pkgs.append((dep, dep)) else: dep_pkgs.append(dep) - else: + elif blocked: raise BlockedException, (self.get_cpv(), blocked[0].get_cpv()) continue # finished with the blocking one -> next |