1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-10-05 18:50:09 +02:00

checkupdates: Save app data to correct metadata format

Closes #461
This commit is contained in:
mimi89999 2018-03-09 20:05:11 +01:00
parent a576796291
commit aaa6b55bf7
No known key found for this signature in database
GPG Key ID: 4B054AC4922D7B18

View File

@ -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")