[Piuparts-commits] [SCM] piuparts git repository branch, develop, updated. 0.49-113-g2c98b1d

Andreas Beckmann anbe at debian.org
Sun Mar 3 09:14:05 UTC 2013


The following commit has been merged in the develop branch:
commit 2c98b1dde59f9eff039c071178b54bc6e50ca789
Author: Andreas Beckmann <anbe at debian.org>
Date:   Sat Mar 2 13:51:04 2013 +0100

    lib/conf: Config: drop get_sources_url()/get_packages_url()
    
    this is now handled with more flexibility in DistroConfig
    
    Signed-off-by: Andreas Beckmann <anbe at debian.org>

diff --git a/piupartslib/conf.py b/piupartslib/conf.py
index 0bdd1ec..0d61477 100644
--- a/piupartslib/conf.py
+++ b/piupartslib/conf.py
@@ -88,16 +88,6 @@ class Config(UserDict.UserDict):
             self["arch"] = p.stdout.read().rstrip()
         return self["arch"]
 
-    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(distro), distro, self.get_area(), self.get_arch())
-
-    def get_sources_url(self):
-        return "%s/dists/%s/%s/source/Sources.bz2" % \
-                (self.get_mirror(self.get_distro()), self.get_distro(), self.get_area())
-
 
 class DistroConfig(UserDict.UserDict):
 

-- 
piuparts git repository



More information about the Piuparts-commits mailing list