[Piuparts-commits] [SCM] piuparts git repository branch, develop, updated. 0.44-728-gfae5f52
Andreas Beckmann
debian at abeckmann.de
Sun Jun 17 21:01:13 UTC 2012
The following commit has been merged in the develop branch:
commit f2be0f8a31d6bfa2995ed7594c9c6ddafe026d11
Author: Andreas Beckmann <debian at abeckmann.de>
Date: Thu Jun 14 19:21:17 2012 +0200
lib/conf: don't require passing a list of mandatory keys
Make the list of mandatory keys an optional argument, defaulting to [].
Don't pass an empty string as the "mandatory" argument.
Signed-off-by: Andreas Beckmann <debian at abeckmann.de>
diff --git a/piuparts-master.py b/piuparts-master.py
index 9e881d5..e5b6150 100644
--- a/piuparts-master.py
+++ b/piuparts-master.py
@@ -54,7 +54,7 @@ class Config(piupartslib.conf.Config):
"log-file": None,
"packages-url": None,
"master-directory": ".",
- }, "")
+ })
class CommandSyntaxError(Exception):
diff --git a/piuparts-report.py b/piuparts-report.py
index 7ed94eb..b91424d 100644
--- a/piuparts-report.py
+++ b/piuparts-report.py
@@ -425,7 +425,7 @@ class Config(piupartslib.conf.Config):
"description": "",
"max-reserved": 1,
"doc-root": "/piuparts/",
- }, "")
+ })
def setup_logging(log_level, log_file_name):
diff --git a/piuparts-slave.py b/piuparts-slave.py
index 2257cc0..5c70363 100644
--- a/piuparts-slave.py
+++ b/piuparts-slave.py
@@ -84,7 +84,7 @@ class Config(piupartslib.conf.Config):
"keep-sources-list": "no",
"arch": None,
"precedence": "1",
- }, "")
+ })
class Alarm(Exception):
diff --git a/piupartslib/conf.py b/piupartslib/conf.py
index a7be2a3..cb8a2eb 100644
--- a/piupartslib/conf.py
+++ b/piupartslib/conf.py
@@ -34,7 +34,7 @@ class MissingMandatorySetting(Exception):
class Config(UserDict.UserDict):
- def __init__(self, section, defaults, mandatory):
+ def __init__(self, section, defaults, mandatory=[]):
UserDict.UserDict.__init__(self)
self._section = section
for key, value in defaults.iteritems():
--
piuparts git repository
More information about the Piuparts-commits
mailing list