chiark / gitweb /
Small logic fix in Update Project:
authorDaniel Martí <mvdan@mvdan.cc>
Thu, 23 Jan 2014 09:40:23 +0000 (10:40 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Thu, 23 Jan 2014 09:40:23 +0000 (10:40 +0100)
fdroidserver/common.py

index db61696cf9392a078f57daeeb82fd24561e5d1c6..ec370ee8bcebcacfd7b883c39effe08f60951119 100644 (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]