[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 e727f8dd78a81ff92cd643bc5f8d08539eb4caa2
Author: Andreas Beckmann <anbe at debian.org>
Date: Sun Mar 3 13:03:24 2013 +0100
lib/conf: add get_start_distro() method
Signed-off-by: Andreas Beckmann <anbe at debian.org>
diff --git a/debian/changelog b/debian/changelog
index 1540edf..553eac9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -28,7 +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 methods: get_distros(), get_start_distro().
- 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 9e778c0..a5b59f3 100644
--- a/piupartslib/conf.py
+++ b/piupartslib/conf.py
@@ -72,6 +72,12 @@ class Config(UserDict.UserDict):
return distros[-1]
return None
+ def get_start_distro(self):
+ distros = self.get_distros()
+ if distros:
+ return distros[0]
+ return self["distro"]
+
def get_final_distro(self):
distros = self.get_distros()
if distros:
--
piuparts git repository
More information about the Piuparts-commits
mailing list