summaryrefslogtreecommitdiff
path: root/portato/backend
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2009-01-28 21:43:18 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2009-01-28 21:43:18 +0100
commit3d248edb873d90f77798a31a5287f947b9579913 (patch)
treecd7b295ce61558c1dde999e7f3c3ad90a9e982df /portato/backend
parent1e15be78f10ea1fbcc33d7b8dfe42433f447092d (diff)
downloadportato-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.py5
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