mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-06 23:40:29 +03: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:
parent
09b76a0bf4
commit
9137a611e0
1 changed files with 2 additions and 1 deletions
|
|
@ -291,7 +291,7 @@ def main():
|
||||||
|
|
||||||
if not version:
|
if not version:
|
||||||
print "..." + vercode
|
print "..." + vercode
|
||||||
elif vercode == app['Current Version Code'] and version == app['Current Version']:
|
elif vercode == app['Current Version Code']:
|
||||||
print "...up to date"
|
print "...up to date"
|
||||||
else:
|
else:
|
||||||
print '...updating to version:' + version + ' vercode:' + vercode
|
print '...updating to version:' + version + ' vercode:' + vercode
|
||||||
|
|
@ -371,6 +371,7 @@ def main():
|
||||||
metafile = os.path.join('metadata', app['id'] + '.txt')
|
metafile = os.path.join('metadata', app['id'] + '.txt')
|
||||||
common.write_metadata(metafile, app)
|
common.write_metadata(metafile, app)
|
||||||
if options.commit and logmsg:
|
if options.commit and logmsg:
|
||||||
|
print "Commiting update for " + metafile
|
||||||
if subprocess.call("git add " + metafile, shell=True) != 0:
|
if subprocess.call("git add " + metafile, shell=True) != 0:
|
||||||
print "Git add failed"
|
print "Git add failed"
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue