X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=tic%2Fcommand.py;h=2a883cb8ffb9cb643e60adec7b38bb24670bf2a9;hb=433db615f3102bf55ae73b66fcb38c1fa29f63be;hp=89df3fbb4890d41bcfb02659141a58c9590fb6a1;hpb=f2dd73bd47c4d6e4601cb2e8f044aa59db170a98;p=archive%2F20170607%2Ftools%2Ftic-core.git diff --git a/tic/command.py b/tic/command.py index 89df3fb..2a883cb 100644 --- a/tic/command.py +++ b/tic/command.py @@ -95,7 +95,7 @@ def analyze(repo_list, recipe_list=None): return result -def exports(export_type, recipe, packages, outdir, filename): +def exports(export_type, recipe, packages, outdir, filename=None): logger = logging.getLogger(__name__) #TODO validation should be checked before request @@ -131,15 +131,12 @@ def exports(export_type, recipe, packages, outdir, filename): # check whether the ks exists baseline=recipe['Default'].get('Baseline') ksname= ''.join([config.get('FileName'), '.ks']) - if filename: - ksname= ''.join([config.get('FileName'), '.ks']) - kspath=os.path.join(yaml_info.cachedir, baseline, ksname) if not os.path.exists(kspath): raise TICError('No ks file was created from kickstarter') # copy the ks to output directory - output=copyfile(kspath, outdir) + output=copyfile(kspath, outdir, filename) logger.info('copy the ks file from %s to dst:%s', kspath, output) return output