1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-11 15:13:27 +02:00

Small logic fix in Update Project:

This commit is contained in:
Daniel Martí 2014-01-23 10:40:23 +01:00
parent 1e216f7f46
commit 20aa416a4b

View File

@ -848,7 +848,7 @@ def getsrclib(spec, srclib_dir, srclibpaths=[], subdir=None, target=None,
raise BuildException("Error running prepare command for srclib %s"
% name, p.stdout)
if srclib["Update Project"] == "Yes" and autoupdate and not number:
if srclib["Update Project"] == "Yes" and not (autoupdate and number):
print "Updating srclib %s at path %s" % (name, libdir)
cmd = [os.path.join(config['sdk_path'], 'tools', 'android'),
'update', 'project', '-p', libdir]