mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
Fix import directory bug
This commit is contained in:
parent
fba0e08fff
commit
55e38dbe1c
1 changed files with 2 additions and 2 deletions
|
|
@ -204,8 +204,8 @@ def main():
|
||||||
# Get a copy of the source so we can extract some info...
|
# Get a copy of the source so we can extract some info...
|
||||||
print 'Getting source from ' + repotype + ' repo at ' + repo
|
print 'Getting source from ' + repotype + ' repo at ' + repo
|
||||||
src_dir = os.path.join(tmp_dir, 'importer')
|
src_dir = os.path.join(tmp_dir, 'importer')
|
||||||
if os.path.exists(tmp_dir):
|
if os.path.exists(src_dir):
|
||||||
shutil.rmtree(tmp_dir)
|
shutil.rmtree(src_dir)
|
||||||
vcs = common.getvcs(repotype, repo, src_dir)
|
vcs = common.getvcs(repotype, repo, src_dir)
|
||||||
vcs.gotorevision(None)
|
vcs.gotorevision(None)
|
||||||
if options.subdir:
|
if options.subdir:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue