]> git.ipfire.org Git - people/jschlag/pbs.git/commitdiff
builds: Active builds must be of type 'release'.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 17 Feb 2013 17:34:05 +0000 (18:34 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 17 Feb 2013 17:34:05 +0000 (18:34 +0100)
backend/builds.py

index ef1e7c1fb9b6bf59cce6112a8a0f65cc8b282a77..fcfb3491a122658a86f5905c3973bfdb0866bd85 100644 (file)
@@ -175,8 +175,8 @@ class Builds(base.Object):
                query = "\
                        SELECT * FROM builds \
                                LEFT JOIN builds_latest ON builds.id = builds_latest.build_id \
-                       WHERE builds_latest.package_name = %s"
-               args = [name,]
+                       WHERE builds_latest.package_name = %s AND builds.type = %s"
+               args = [name, "release"]
 
                if public is True:
                        query += " AND builds.public = %s"