[Piuparts-commits] [SCM] piuparts git repository branch, piatti, updated. 0.49-167-gc2d72c8
Andreas Beckmann
anbe at debian.org
Thu Mar 7 11:00:13 UTC 2013
The following commit has been merged in the piatti branch:
commit a5fb9e1b4782d1b6e31b6c9ffe630eba9b5f6094
Author: Andreas Beckmann <anbe at debian.org>
Date: Sun Mar 3 22:48:34 2013 +0100
lib/conf: add get_basetgz() method
Signed-off-by: Andreas Beckmann <anbe at debian.org>
diff --git a/piupartslib/conf.py b/piupartslib/conf.py
index 04fb490..a71f762 100644
--- a/piupartslib/conf.py
+++ b/piupartslib/conf.py
@@ -177,5 +177,15 @@ class DistroConfig(UserDict.UserDict):
c))
return lines
+ def get_basetgz(self, distro):
+ # look for the first base distribution
+ for d in self._expand_depends(distro):
+ if not self[d]["uri"] is None and self[d]["uri"] == "None":
+ next # skip virtual section
+ if self.get(d, "depends"):
+ next # skip partial distro
+ return self.get_distribution(d) + ".tar.gz"
+ return None
+
# vi:set et ts=4 sw=4 :
--
piuparts git repository
More information about the Piuparts-commits
mailing list