chiark / gitweb /
rewritemeta: do not include empty Summary: or Description:
authorHans-Christoph Steiner <hans@eds.org>
Wed, 7 Jun 2017 09:33:01 +0000 (11:33 +0200)
committerHans-Christoph Steiner <hans@eds.org>
Wed, 7 Jun 2017 20:10:25 +0000 (22:10 +0200)
Since the Summary: and Description: in the metadata file has the highest
priority of all the localized texts, adding blank versions means that
apps would always have blank Summary and Description even if the app has
those fields in the localized sections of fdroiddata and/or in the app's
source repo itself.

fdroiddata!2262

fdroidserver/metadata.py

index 9d18c4a3d2fb0be7cf4830ad4106120f39ac8c2e..6ca9aace4ab13797592332b56bb5163ba65da162 100644 (file)
@@ -1225,8 +1225,8 @@ def write_plaintext_metadata(mf, app, w_comment, w_field, w_build):
     mf.write('\n')
     w_field_nonempty('Name')
     w_field_nonempty('Auto Name')
-    w_field_always('Summary')
-    w_field_always('Description', description_txt(app.Description))
+    w_field_nonempty('Summary')
+    w_field_nonempty('Description', description_txt(app.Description))
     mf.write('\n')
     if app.RequiresRoot:
         w_field_always('Requires Root', 'yes')