Handle duplicate apps in a much cleaner way

Don't log and exit in an inner metadata function. Handle it at a higher
level and do a proper exception. This also avoids unnecessary passing of
apps all around.
This commit is contained in:
Daniel Martí 2015-11-28 12:16:23 +01:00
parent ce2f4a115c
commit de12cfdbe1
3 changed files with 19 additions and 22 deletions

View file

@ -174,7 +174,7 @@ def main():
config = common.read_config(options)
apps = metadata.read_metadata()
package, app = metadata.get_default_app_info_list(apps)
package, app = metadata.get_default_app_info()
app['id'] = None
app['Update Check Mode'] = "Tags"