From 55e38dbe1c36b6ba6c03b57ef3b87b315b35ea65 Mon Sep 17 00:00:00 2001 From: Ciaran Gultnieks Date: Mon, 20 Aug 2012 12:57:28 +0100 Subject: [PATCH] Fix import directory bug --- fdroidserver/import.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fdroidserver/import.py b/fdroidserver/import.py index 60690fc5..783e9c6e 100644 --- a/fdroidserver/import.py +++ b/fdroidserver/import.py @@ -204,8 +204,8 @@ def main(): # Get a copy of the source so we can extract some info... print 'Getting source from ' + repotype + ' repo at ' + repo src_dir = os.path.join(tmp_dir, 'importer') - if os.path.exists(tmp_dir): - shutil.rmtree(tmp_dir) + if os.path.exists(src_dir): + shutil.rmtree(src_dir) vcs = common.getvcs(repotype, repo, src_dir) vcs.gotorevision(None) if options.subdir: