[Piuparts-commits] [SCM] piuparts git repository branch, develop, updated. 0.44-780-ga363455

Andreas Beckmann debian at abeckmann.de
Mon Jun 18 20:52:21 UTC 2012


The following commit has been merged in the develop branch:
commit f03656cb4ef8343dfa42240b0ae1c44dcf1874bf
Author: Andreas Beckmann <debian at abeckmann.de>
Date:   Wed Jun 13 14:15:40 2012 +0200

    lib/conf: add get_area() method
    
    Signed-off-by: Andreas Beckmann <debian at abeckmann.de>

diff --git a/piupartslib/conf.py b/piupartslib/conf.py
index e88d44c..b0cff91 100644
--- a/piupartslib/conf.py
+++ b/piupartslib/conf.py
@@ -67,4 +67,9 @@ class Config(UserDict.UserDict):
                 return distros[-1]
         return None
 
+    def get_area(self):
+        if self["area"] is not None:
+            return self["area"]
+        return "main"
+
 # vi:set et ts=4 sw=4 :

-- 
piuparts git repository



More information about the Piuparts-commits mailing list