mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-06 15:30:28 +03:00
Adapt checkupdates
This commit is contained in:
parent
21db79eea2
commit
3aec0aacd7
5 changed files with 13 additions and 19 deletions
|
|
@ -280,8 +280,6 @@ def main():
|
|||
parser = OptionParser()
|
||||
parser.add_option("-v", "--verbose", action="store_true", default=False,
|
||||
help="Spew out even more information than normal")
|
||||
parser.add_option("-p", "--package", default=None,
|
||||
help="Check only the specified package")
|
||||
parser.add_option("--auto", action="store_true", default=False,
|
||||
help="Process auto-updates")
|
||||
parser.add_option("--autoonly", action="store_true", default=False,
|
||||
|
|
@ -295,14 +293,9 @@ def main():
|
|||
config = common.read_config(options)
|
||||
|
||||
# Get all apps...
|
||||
apps = metadata.read_metadata(options.verbose)
|
||||
allapps = metadata.read_metadata(options.verbose)
|
||||
|
||||
# Filter apps according to command-line options
|
||||
if options.package:
|
||||
apps = [app for app in apps if app['id'] == options.package]
|
||||
if len(apps) == 0:
|
||||
print "No such package"
|
||||
sys.exit(1)
|
||||
apps = common.read_app_args(args, options, allapps, False)
|
||||
|
||||
if options.gplay:
|
||||
for app in apps:
|
||||
|
|
@ -325,7 +318,6 @@ def main():
|
|||
|
||||
for app in apps:
|
||||
|
||||
|
||||
if options.autoonly and app['Auto Update Mode'] == 'None':
|
||||
if options.verbose:
|
||||
print "Nothing to do for %s..." % app['id']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue