def createStandardDAR(scramRtePath, darTagName): """ _createStandardDAR_ Create a standard non-incremental darball from the scram rte path provided, and create a dar file with the tagname provided. """ darConf = [] darConf.append("use scram rte %s\n" % scramRtePath) darConf.append("use dar tagname %s\n" % darTagName) config = { "dar_shared_pool" : os.getcwd(), "dar_dist_pool" : os.getcwd(), "dar_inst_pool" : os.getcwd(), "dar_tmp_dir" : os.getcwd(), } manager = Manager( darConf, cnf=config, pltf=Platform() ) manager.prepareDistribution('copy') manager.checkCriteria() darFile = manager.saveAndQuit() if not os.path.exists(darFile): raise RuntimeError, "Darfile not created: %s " % darFile return darFile