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'])
continue
(version, vercode) = check_repotrunk(app)
elif mode == 'HTTP':
(version, vercode) = check_http(app)
- elif mode == 'Static':
- version = None
- msg = 'Checking disabled'
- noverok = True
- elif mode == 'None':
+ elif mode in ('None', 'Static'):
version = None
msg = 'Checking disabled'
noverok = True
writeit = True
# 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:
if options.auto:
mode = app['Auto Update Mode']
- if mode == 'None':
+ if mode in ('None', 'Static'):
pass
elif mode.startswith('Version '):
pattern = mode[8:]