Fix import.py crash

This commit is contained in:
Daniel Martí 2013-11-13 17:29:10 +01:00
parent 17f6e4d169
commit 560dd15464

View file

@ -220,7 +220,7 @@ def main():
src_dir = os.path.join(tmp_dir, 'importer') src_dir = os.path.join(tmp_dir, 'importer')
if os.path.exists(src_dir): if os.path.exists(src_dir):
shutil.rmtree(src_dir) shutil.rmtree(src_dir)
vcs = common.getvcs(repotype, repo, src_dir, config['sdk_path']) vcs = common.getvcs(repotype, repo, src_dir)
vcs.gotorevision(options.rev) vcs.gotorevision(options.rev)
if options.subdir: if options.subdir:
root_dir = os.path.join(src_dir, options.subdir) root_dir = os.path.join(src_dir, options.subdir)