From aaa6b55bf70ff596ea9de4cf20761c09c69e2487 Mon Sep 17 00:00:00 2001 From: mimi89999 Date: Fri, 9 Mar 2018 20:05:11 +0100 Subject: [PATCH] checkupdates: Save app data to correct metadata format Closes #461 --- fdroidserver/checkupdates.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/fdroidserver/checkupdates.py b/fdroidserver/checkupdates.py index 72c8b22b..59e2ddd1 100644 --- a/fdroidserver/checkupdates.py +++ b/fdroidserver/checkupdates.py @@ -510,14 +510,13 @@ def checkupdates_app(app): logging.warn('Invalid auto update mode "' + mode + '" on ' + app.id) if commitmsg: - metadatapath = os.path.join('metadata', app.id + '.txt') - metadata.write_metadata(metadatapath, app) + metadata.write_metadata(app.metadatapath, app) if options.commit: - logging.info("Commiting update for " + metadatapath) + logging.info("Commiting update for " + app.metadatapath) gitcmd = ["git", "commit", "-m", commitmsg] if 'auto_author' in config: gitcmd.extend(['--author', config['auto_author']]) - gitcmd.extend(["--", metadatapath]) + gitcmd.extend(["--", app.metadatapath]) if subprocess.call(gitcmd) != 0: raise FDroidException("Git commit failed")