- try:
- tagfile = options.distrotags[0]
- if not tagfile: raise
- except:
- print "ERROR: provide a tagfile name (eg. onelab, onelab-k27, planetlab)"
- return
- # mmh, sounds wrong to blindly add the extension
- # if in a build directory, guess from existing files
- if os.path.isfile (tagfile):
- pass
- elif os.path.isfile ("%s-tags.mk" % tagfile):
- tagfile="%s-tags.mk" % tagfile
+ # the command line expects new old, so we treat the tagfiles in the same order
+ nb_tags=len(options.distrotags)
+ if nb_tags==1:
+ tagfile_new=tagfile_old=options.distrotags[0]
+ elif nb_tags==2:
+ [tagfile_new,tagfile_old]=options.distrotags