[Commits] (markie) Make sure defaults are replaced by actual args
commits at osafoundation.org
commits at osafoundation.org
Tue May 18 13:37:31 PDT 2004
Commit by: markie
Modified files:
hardhat/singlebuild.py 1.8 1.9
Log message:
Make sure defaults are replaced by actual args
ViewCVS links:
http://cvs.osafoundation.org/index.cgi/hardhat/singlebuild.py.diff?r1=text&tr1=1.8&r2=text&tr2=1.9
Index: hardhat/singlebuild.py
diff -u hardhat/singlebuild.py:1.8 hardhat/singlebuild.py:1.9
--- hardhat/singlebuild.py:1.8 Thu Jun 26 13:49:01 2003
+++ hardhat/singlebuild.py Tue May 18 13:37:01 2004
@@ -64,8 +64,16 @@
sys.exit(1)
# defaults:
- project = "chandler"
- toAddr = "morgen at osafoundation.org"
+ if projectArg is None:
+ project = "chandler"
+ else:
+ project = projectArg
+
+ if toAddrArg is None:
+ toAddr = "morgen at osafoundation.org"
+ else:
+ toAddr = toAddrArg
+
buildVersion = nowString
# default is "-D now", but override with date; override that with tag
@@ -95,6 +103,9 @@
logFile = os.path.join(buildDir, "build.log")
buildscriptFile = os.path.join("buildscripts", project + ".py")
fromAddr = "builds at osafoundation.org"
+ print "Mail to ", toAddr
+ print "Build dir", buildDir
+ print "Build file ", buildscriptFile
curDir = os.path.abspath(os.getcwd())
More information about the Commits
mailing list