chiark / gitweb /
import: fix crash when importing from local git repo
authorHans-Christoph Steiner <hans@eds.org>
Wed, 31 Jan 2018 08:59:06 +0000 (09:59 +0100)
committerHans-Christoph Steiner <hans@eds.org>
Mon, 12 Feb 2018 11:05:27 +0000 (12:05 +0100)
fdroidserver/import.py

index 550e7469398d166bcfc0db35b5fec2bf244bb4f3..77f4db9523e50fe8520382bbd804865391c89fdc 100644 (file)
@@ -231,7 +231,7 @@ def main():
         app.AutoName = os.path.basename(os.getcwd())
         app.RepoType = 'git'
 
-        build = {}
+        build = metadata.Build()
         root_dir = get_subdir(os.getcwd())
         if os.path.exists('build.gradle'):
             build.gradle = ['yes']