[Piuparts-commits] [SCM] piuparts git repository branch, piatti, updated. 0.49-127-gd1ef233
Andreas Beckmann
anbe at debian.org
Sun Mar 3 16:11:23 UTC 2013
The following commit has been merged in the piatti branch:
commit 1d09aa5b68f9da51410b7c64b82c64b48ce62b5d
Author: Andreas Beckmann <anbe at debian.org>
Date: Sun Mar 3 12:54:15 2013 +0100
lib/conf: add get_distros() method
returns the split upgrade-test-distros list
Signed-off-by: Andreas Beckmann <anbe at debian.org>
diff --git a/debian/changelog b/debian/changelog
index 81829cd..1540edf 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -28,6 +28,7 @@ piuparts (0.50) UNRELEASED; urgency=low
squeeze-backports, experimental) along with their dependencies (e.g. base
distribution) and non-default mirrors. Shipped in package piuparts-common.
* piupartslib/conf.py:
+ - Add get_distros() method.
- Add class DistroConfig for reading distros.conf.
* piupartslib/packagesdb.py:
- Add Package.waiting_count() and friends, populated in calc_rrdep_count.
diff --git a/piupartslib/conf.py b/piupartslib/conf.py
index 0d61477..794bae0 100644
--- a/piupartslib/conf.py
+++ b/piupartslib/conf.py
@@ -59,6 +59,11 @@ class Config(UserDict.UserDict):
return self["mirror"]
return "http://cdn.debian.net/debian"
+ def get_distros(self):
+ if self["upgrade-test-distros"] is not None:
+ return self["upgrade-test-distros"].split()
+ return []
+
def get_distro(self):
if self["distro"] is not None:
return self["distro"]
--
piuparts git repository
More information about the Piuparts-commits
mailing list