[Piuparts-commits] [SCM] piuparts git repository branch, piatti, updated. 0.49-147-g5e9a5c3
Andreas Beckmann
anbe at debian.org
Mon Mar 4 09:54:43 UTC 2013
The following commit has been merged in the piatti branch:
commit 2ff518e53a0586390fa42624d97af2171334ebdc
Author: Andreas Beckmann <anbe at debian.org>
Date: Sun Mar 3 19:02:27 2013 +0100
lib/conf: DistroConfig: add support for target-release
Signed-off-by: Andreas Beckmann <anbe at debian.org>
diff --git a/piupartslib/conf.py b/piupartslib/conf.py
index a5b59f3..04fb490 100644
--- a/piupartslib/conf.py
+++ b/piupartslib/conf.py
@@ -107,6 +107,7 @@ class DistroConfig(UserDict.UserDict):
"uri": None,
"distribution": None,
"components": None,
+ "target-release": None,
"depends": None,
}
cp = ConfigParser.SafeConfigParser()
@@ -142,6 +143,12 @@ class DistroConfig(UserDict.UserDict):
self.get_distribution(distro),
area)
+ def get_target_flags(self, distro):
+ tr = self.get(distro, "target-release")
+ if tr:
+ return ["-t", tr]
+ return []
+
def _expand_depends(self, distro):
todo = [distro]
done = []
--
piuparts git repository
More information about the Piuparts-commits
mailing list