[Piuparts-commits] [SCM] piuparts git repository branch, piatti, updated. 0.44-782-gd639116

Andreas Beckmann debian at abeckmann.de
Mon Jun 18 21:15:19 UTC 2012


The following commit has been merged in the piatti branch:
commit 349763a4f17fd016643d779ffafc551e9e8ef364
Author: Andreas Beckmann <debian at abeckmann.de>
Date:   Wed Jun 13 15:04:09 2012 +0200

    lib/conf: get_packages_url(): add optional distro argument
    
    piuparts-slave needs to fetch Packages for multiple distros
    
    Signed-off-by: Andreas Beckmann <debian at abeckmann.de>

diff --git a/piupartslib/conf.py b/piupartslib/conf.py
index 02cc90b..70a879a 100644
--- a/piupartslib/conf.py
+++ b/piupartslib/conf.py
@@ -81,9 +81,11 @@ class Config(UserDict.UserDict):
             self["arch"] = p.stdout.read().rstrip()
         return self["arch"]
 
-    def get_packages_url(self):
+    def get_packages_url(self, distro=None):
+        if distro is None:
+            distro = self.get_distro()
         return "%s/dists/%s/%s/binary-%s/Packages.bz2" % \
-                (self.get_mirror(), self.get_distro(), self.get_area(), self.get_arch())
+                (self.get_mirror(), distro, self.get_area(), self.get_arch())
 
     def get_sources_url(self):
         return "%s/dists/%s/%s/source/Sources.bz2" % \

-- 
piuparts git repository



More information about the Piuparts-commits mailing list