[Piuparts-commits] [SCM] piuparts git repository branch, piatti, updated. 0.44-782-gd639116
Andreas Beckmann
debian at abeckmann.de
Mon Jun 18 21:14:59 UTC 2012
The following commit has been merged in the piatti branch:
commit 71d9a1fc74a8721e99cef192d88ae9c991cd790b
Author: Andreas Beckmann <debian at abeckmann.de>
Date: Wed Jun 13 13:41:25 2012 +0200
lib/conf: add get_mirror() method
Signed-off-by: Andreas Beckmann <debian at abeckmann.de>
diff --git a/piupartslib/conf.py b/piupartslib/conf.py
index 033aa71..c00b136 100644
--- a/piupartslib/conf.py
+++ b/piupartslib/conf.py
@@ -53,4 +53,9 @@ class Config(UserDict.UserDict):
elif key in self._mandatory:
raise MissingMandatorySetting(filename, key)
+ def get_mirror(self):
+ if self["mirror"] is not None:
+ return self["mirror"]
+ return "http://cdn.debian.net/debian"
+
# vi:set et ts=4 sw=4 :
--
piuparts git repository
More information about the Piuparts-commits
mailing list