1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 22:40:12 +01:00

Keep repo directory from an import

This commit is contained in:
Ciaran Gultnieks 2012-08-10 11:53:56 +01:00
parent 2b46fa1c99
commit f49a85b4fb

View 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