[Piuparts-commits] [SCM] piuparts git repository branch, master, updated. 0.51

Holger Levsen holger at layer-acht.org
Wed May 15 10:10:09 UTC 2013


The following commit has been merged in the master branch:
commit c03d868603379ba53cc2c76600d67347cd279f55
Author: Andreas Beckmann <anbe at debian.org>
Date:   Sun May 12 00:57:39 2013 +0200

    lib/conf: resolve virtual distros when querying mirror or distro
    
    Signed-off-by: Andreas Beckmann <anbe at debian.org>

diff --git a/piupartslib/conf.py b/piupartslib/conf.py
index f1fe494..aae7086 100644
--- a/piupartslib/conf.py
+++ b/piupartslib/conf.py
@@ -142,9 +142,13 @@ class DistroConfig(UserDict.UserDict):
         return uri is not None and uri == "None"
 
     def get_mirror(self, distro):
+        if self._is_virtual(distro):
+            distro = self._expand_depends(distro)[0]
         return self.get(distro, "uri") or self._mirror
 
     def get_distribution(self, distro):
+        if self._is_virtual(distro):
+            distro = self._expand_depends(distro)[0]
         return self.get(distro, "distribution") or distro
 
     def get_packages_url(self, distro, area, arch):

-- 
piuparts git repository



More information about the Piuparts-commits mailing list