mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-10 17:30:11 +01:00
Drop --reset-server
This commit is contained in:
parent
1ebf32321f
commit
19aef075b4
@ -83,7 +83,7 @@ __complete_options() {
|
|||||||
__complete_build() {
|
__complete_build() {
|
||||||
opts="-v -q -l -s -t -f -a"
|
opts="-v -q -l -s -t -f -a"
|
||||||
|
|
||||||
lopts="--verbose --quiet --latest --stop --test --server --reset-server --skip-scan --scan-binary --no-tarball --force --all --no-refresh"
|
lopts="--verbose --quiet --latest --stop --test --server --skip-scan --scan-binary --no-tarball --force --all --no-refresh"
|
||||||
case "${prev}" in
|
case "${prev}" in
|
||||||
:)
|
:)
|
||||||
__vercode
|
__vercode
|
||||||
|
@ -989,8 +989,6 @@ def parse_commandline():
|
|||||||
help=_("Test mode - put output in the tmp directory only, and always build, even if the output already exists."))
|
help=_("Test mode - put output in the tmp directory only, and always build, even if the output already exists."))
|
||||||
parser.add_argument("--server", action="store_true", default=False,
|
parser.add_argument("--server", action="store_true", default=False,
|
||||||
help=_("Use build server"))
|
help=_("Use build server"))
|
||||||
parser.add_argument("--reset-server", action="store_true", default=False,
|
|
||||||
help=_("Reset and create a brand new build server, even if the existing one appears to be ok."))
|
|
||||||
# this option is internal API for telling fdroid that
|
# this option is internal API for telling fdroid that
|
||||||
# it's running inside a buildserver vm.
|
# it's running inside a buildserver vm.
|
||||||
parser.add_argument("--on-server", dest="onserver", action="store_true", default=False,
|
parser.add_argument("--on-server", dest="onserver", action="store_true", default=False,
|
||||||
@ -1080,8 +1078,6 @@ def main():
|
|||||||
|
|
||||||
if config['build_server_always']:
|
if config['build_server_always']:
|
||||||
options.server = True
|
options.server = True
|
||||||
if options.reset_server and not options.server:
|
|
||||||
parser.error("option %s: Using --reset-server without --server makes no sense" % "reset-server")
|
|
||||||
|
|
||||||
log_dir = 'logs'
|
log_dir = 'logs'
|
||||||
if not os.path.isdir(log_dir):
|
if not os.path.isdir(log_dir):
|
||||||
|
Loading…
Reference in New Issue
Block a user