[Piuparts-commits] [SCM] piuparts git repository branch, master, updated. 0.51
Andreas Beckmann
anbe at debian.org
Wed May 15 10:10:02 UTC 2013
The following commit has been merged in the master branch:
commit 8ed218dac7742b60cea74aed5bb1d5d1e8ba959a
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