mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-06 23:40:29 +03:00
Treat None and Static UCMs equally when doing checkupdates
This commit is contained in:
parent
d4d7a9957d
commit
fa0f9bf1af
1 changed files with 4 additions and 8 deletions
|
|
@ -340,7 +340,7 @@ def main():
|
||||||
|
|
||||||
for app in apps:
|
for app in apps:
|
||||||
|
|
||||||
if options.autoonly and app['Auto Update Mode'] == 'None':
|
if options.autoonly and app['Auto Update Mode'] in ('None', 'Static'):
|
||||||
logging.debug("Nothing to do for %s..." % app['id'])
|
logging.debug("Nothing to do for %s..." % app['id'])
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
@ -366,11 +366,7 @@ def main():
|
||||||
(version, vercode) = check_repotrunk(app)
|
(version, vercode) = check_repotrunk(app)
|
||||||
elif mode == 'HTTP':
|
elif mode == 'HTTP':
|
||||||
(version, vercode) = check_http(app)
|
(version, vercode) = check_http(app)
|
||||||
elif mode == 'Static':
|
elif mode in ('None', 'Static'):
|
||||||
version = None
|
|
||||||
msg = 'Checking disabled'
|
|
||||||
noverok = True
|
|
||||||
elif mode == 'None':
|
|
||||||
version = None
|
version = None
|
||||||
msg = 'Checking disabled'
|
msg = 'Checking disabled'
|
||||||
noverok = True
|
noverok = True
|
||||||
|
|
@ -398,7 +394,7 @@ def main():
|
||||||
writeit = True
|
writeit = True
|
||||||
|
|
||||||
# Do the Auto Name thing as well as finding the CV real name
|
# Do the Auto Name thing as well as finding the CV real name
|
||||||
if len(app["Repo Type"]) > 0 and mode != 'None':
|
if len(app["Repo Type"]) > 0 and mode not in ('None', 'Static'):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
||||||
|
|
@ -438,7 +434,7 @@ def main():
|
||||||
|
|
||||||
if options.auto:
|
if options.auto:
|
||||||
mode = app['Auto Update Mode']
|
mode = app['Auto Update Mode']
|
||||||
if mode == 'None':
|
if mode in ('None', 'Static'):
|
||||||
pass
|
pass
|
||||||
elif mode.startswith('Version '):
|
elif mode.startswith('Version '):
|
||||||
pattern = mode[8:]
|
pattern = mode[8:]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue