From: Ciaran Gultnieks Date: Fri, 10 Aug 2012 10:53:56 +0000 (+0100) Subject: Keep repo directory from an import X-Git-Tag: 0.1~796 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=f49a85b4fb7ecf4ee9d035b3c913f153c933b01f;p=fdroidserver.git Keep repo directory from an import --- diff --git a/fdroidserver/import.py b/fdroidserver/import.py index 6956e02c..6490ce97 100644 --- a/fdroidserver/import.py +++ b/fdroidserver/import.py @@ -240,6 +240,11 @@ def main(): app['comments'].append(('build:' + version, "#Generated by import.py - check this is the right version, and find the right commit!")) + # Keep the repo directory to save bandwidth... + if not os.path.exists('build'): + os.mkdir('build') + shutil.move(src_dir, os.path.join('build', package)) + metafile = os.path.join('metadata', package + '.txt') common.write_metadata(metafile, app) print "Wrote " + metafile