#!/usr/bin/python
-subversion_id = "$Id: module-tools.py 12136 2009-02-20 14:11:56Z thierry $"
+subversion_id = "$Id$"
from optparse import OptionParser
else:
return ' -s ' + URL + "/build/branches/%(branch)s"%locals()
-def build_tags_option (branch):
+def build_tags_option (branch,locals_dict):
try:
- return MAJOR_HASH[branch]['tags']%locals()
+ return MAJOR_HASH[branch]['tags']%locals_dict
except:
- return ' -s ' + URL + "/build/branches/%(branch)s"%locals()
-
+ return '---------- could not set up tags option ----------'
####################
def optparse_list (option, opt, value, parser):
for build in args:
(branch,tag) = parse_branch (build)
build_option=build_build_option(branch,tag)
- tags_option = build_tags_option(branch)
print '#################### build',build,
if tag: print 'tag',tag
base=options.base
for pldistro in pldistros:
+ tags_option = build_tags_option(branch,locals())
for fcdistro in fcdistros:
for bit in options.bits:
p="linux"+bit
MAILTO="-m build@onelab.eu"
+echo $COMMAND is deprecated, use all-builds.py instead
+exit 1
+
+
function usage () {
echo "Usage: $COMMAND [options [ -- vbuild-nightly-options ]]"
echo "In manual mode you should export the following vars (or use related option)"