mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-15 23:42:37 +03:00
import: --omit-disable option to easily work with generated files
This commit is contained in:
parent
1bb9cf43e1
commit
138bc73668
1 changed files with 4 additions and 1 deletions
|
@ -73,6 +73,8 @@ def main():
|
||||||
help=_("Comma separated list of categories."))
|
help=_("Comma separated list of categories."))
|
||||||
parser.add_argument("-l", "--license", default=None,
|
parser.add_argument("-l", "--license", default=None,
|
||||||
help=_("Overall license of the project."))
|
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,
|
parser.add_argument("--rev", default=None,
|
||||||
help=_("Allows a different revision (or git branch) to be specified for the initial import"))
|
help=_("Allows a different revision (or git branch) to be specified for the initial import"))
|
||||||
metadata.add_metadata_arguments(parser)
|
metadata.add_metadata_arguments(parser)
|
||||||
|
@ -112,7 +114,8 @@ def main():
|
||||||
app = common.get_app_from_url(options.url)
|
app = common.get_app_from_url(options.url)
|
||||||
tmp_importer_dir = clone_to_tmp_dir(app)
|
tmp_importer_dir = clone_to_tmp_dir(app)
|
||||||
git_repo = git.repo.Repo(tmp_importer_dir)
|
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
|
write_local_file = False
|
||||||
else:
|
else:
|
||||||
raise FDroidException("Specify project url.")
|
raise FDroidException("Specify project url.")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue