chiark / gitweb /
Keep repo directory from an import
authorCiaran Gultnieks <ciaran@ciarang.com>
Fri, 10 Aug 2012 10:53:56 +0000 (11:53 +0100)
committerCiaran Gultnieks <ciaran@ciarang.com>
Fri, 10 Aug 2012 10:53:56 +0000 (11:53 +0100)
fdroidserver/import.py

index 6956e02c39acda1fb92cb2046cd5ac7a2180ea4f..6490ce974d10c8c89433a6145104653fbd33984a 100644 (file)
@@ -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