From 138bc7366821d4159529b8e01d3787fe10fa10b4 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 3 Mar 2020 21:33:23 +0100 Subject: [PATCH] import: --omit-disable option to easily work with generated files --- fdroidserver/import.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fdroidserver/import.py b/fdroidserver/import.py index 772220ec..23d06d57 100644 --- a/fdroidserver/import.py +++ b/fdroidserver/import.py @@ -73,6 +73,8 @@ def main(): help=_("Comma separated list of categories.")) parser.add_argument("-l", "--license", default=None, help=_("Overall license of the project.")) + parser.add_argument("--omit-disable", default=False, + help=_("Do not add 'disable:' to the generated build entries")) parser.add_argument("--rev", default=None, help=_("Allows a different revision (or git branch) to be specified for the initial import")) metadata.add_metadata_arguments(parser) @@ -112,7 +114,8 @@ def main(): app = common.get_app_from_url(options.url) tmp_importer_dir = clone_to_tmp_dir(app) git_repo = git.repo.Repo(tmp_importer_dir) - build.disable = 'Generated by import.py - check/set version fields and commit id' + if not options.omit_disable: + build.disable = 'Generated by import.py - check/set version fields and commit id' write_local_file = False else: raise FDroidException("Specify project url.")