chiark / gitweb /
Write .fdroidvcs when retaining imported vcs repo
authorCiaran Gultnieks <ciaran@ciarang.com>
Mon, 24 Jun 2013 09:40:27 +0000 (10:40 +0100)
committerCiaran Gultnieks <ciaran@ciarang.com>
Mon, 24 Jun 2013 09:40:27 +0000 (10:40 +0100)
fdroidserver/import.py

index dcc977945a4c85a5239100c43dcf4de204ac3659..3bd4bf758cb42c32d86efff576431ccc328f60ff 100644 (file)
@@ -274,6 +274,8 @@ def main():
     if not os.path.exists('build'):
         os.mkdir('build')
     shutil.move(src_dir, os.path.join('build', package))
+    with open('build/.fdroidvcs-' + package, 'w') as f:
+        f.write(repotype + ' ' + repo)
 
     metafile = os.path.join('metadata', package + '.txt')
     common.write_metadata(metafile, app)