1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 14:30:11 +01:00

Only do an update if the vercode changes

(mainly to work around a recently introduced issue where the name
changes and then changes straight back!)
This commit is contained in:
Ciaran Gultnieks 2013-08-27 16:42:25 +01:00
parent 09b76a0bf4
commit 9137a611e0

View File

@ -291,7 +291,7 @@ def main():
if not version:
print "..." + vercode
elif vercode == app['Current Version Code'] and version == app['Current Version']:
elif vercode == app['Current Version Code']:
print "...up to date"
else:
print '...updating to version:' + version + ' vercode:' + vercode
@ -371,6 +371,7 @@ def main():
metafile = os.path.join('metadata', app['id'] + '.txt')
common.write_metadata(metafile, app)
if options.commit and logmsg:
print "Commiting update for " + metafile
if subprocess.call("git add " + metafile, shell=True) != 0:
print "Git add failed"
sys.exit(1)