[Piuparts-commits] [SCM] piuparts git repository branch, master, updated. 0.51
Andreas Beckmann
anbe at debian.org
Wed May 15 10:09:49 UTC 2013
The following commit has been merged in the master branch:
commit baabf2001c73c62fec73826aac89528043991d9c
Author: Andreas Beckmann <anbe at debian.org>
Date: Wed Apr 10 00:35:21 2013 +0200
lib/db: fix resolving virtual packages
try finding a real package first and lookup virtual ones on failure
Signed-off-by: Andreas Beckmann <anbe at debian.org>
diff --git a/piupartslib/packagesdb.py b/piupartslib/packagesdb.py
index 6eb49ef..713e669 100644
--- a/piupartslib/packagesdb.py
+++ b/piupartslib/packagesdb.py
@@ -594,11 +594,11 @@ class PackagesDB:
def get_package(self, name, recurse=False, resolve_virtual=False):
if name in self._packages:
return self._packages[name]
- elif recurse:
+ if recurse:
for db in self._dependency_databases:
if db.has_package(name):
return db.get_package(name)
- elif resolve_virtual:
+ if resolve_virtual:
providers = self.get_providers(name, recurse=recurse)
if providers:
return self.get_package(providers[0], recurse=recurse, resolve_virtual=False)
--
piuparts git repository
More information about the Piuparts-commits
mailing list