[Treepkg-commits] r476 - trunk/treepkg
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Nov 10 10:24:49 CET 2010
Author: bricks
Date: 2010-11-10 10:24:48 +0100 (Wed, 10 Nov 2010)
New Revision: 476
Modified:
trunk/treepkg/readconfig.py
Log:
set option value to None and not "None"
Modified: trunk/treepkg/readconfig.py
===================================================================
--- trunk/treepkg/readconfig.py 2010-11-10 09:23:49 UTC (rev 475)
+++ trunk/treepkg/readconfig.py 2010-11-10 09:24:48 UTC (rev 476)
@@ -67,7 +67,7 @@
packager_desc = [
"name", "base_dir",
("url", str, ""),
- ("svn_url", str, ""),
+ ("svn_url", str, None),
("svn_subset", convert_subversion_subset, ""),
("svn_externals", shlex.split, ""),
("rules_url", str, ""), ("packager_class", str, "treepkg.packager"),
@@ -116,7 +116,10 @@
print >>sys.stderr, "Missing option %r in section %r" \
% (key, section)
sys.exit(1)
- options[key] = converter(value)
+ if value is None:
+ options[key] = value
+ else:
+ options[key] = converter(value)
return options
More information about the Treepkg-commits
mailing list