chiark / gitweb /
update bombs out when no icons (closes #402)
authorCiaran Gultnieks <ciaran@ciarang.com>
Tue, 24 Oct 2017 20:11:13 +0000 (22:11 +0200)
committerHans-Christoph Steiner <hans@eds.org>
Wed, 25 Oct 2017 21:01:25 +0000 (23:01 +0200)
fdroidserver/update.py

index 50c4d462a46ab3bf061bd1efb313e24b8db09111..574f1c243e6464f00d4051119b136394da13dd44 100644 (file)
@@ -1625,7 +1625,7 @@ def move_apk_between_sections(from_dir, to_dir, apk):
     for density in all_screen_densities:
         from_icon_dir = get_icon_dir(from_dir, density)
         to_icon_dir = get_icon_dir(to_dir, density)
-        if density not in apk['icons']:
+        if density not in apk.get('icons', []):
             continue
         _move_file(from_icon_dir, to_icon_dir, apk['icons'][density], True)
     if 'srcname' in apk: