diff options
author | Eudyptula <eitan@mosenkis.net> | 2009-08-14 11:42:02 -0400 |
---|---|---|
committer | Eudyptula <eitan@mosenkis.net> | 2009-08-14 11:42:02 -0400 |
commit | 53eb7629d4cb33f62da5fe232bf2019e1a54d4f9 (patch) | |
tree | 4c40d2ef78dfd1564934612ee81df596ec3e350b /backend | |
parent | Create sql_row_with_flags class, make user, build, configuration subclasses o... (diff) | |
download | ingenue-53eb7629d4cb33f62da5fe232bf2019e1a54d4f9.tar.gz ingenue-53eb7629d4cb33f62da5fe232bf2019e1a54d4f9.tar.bz2 ingenue-53eb7629d4cb33f62da5fe232bf2019e1a54d4f9.zip |
Quick hack to move bundler selection out of Gentoo module and make it a build-time option; drop 'failed' column from builds and use flags instead
Diffstat (limited to 'backend')
-rwxr-xr-x | backend/backend.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/backend.php b/backend/backend.php index 161b7b2..bb4562c 100755 --- a/backend/backend.php +++ b/backend/backend.php @@ -50,7 +50,7 @@ require_once(SHARED.'/include/dbinit.php'); while (true) { // TODO check first for builds that need to be resumed (and figure out how to resume things) while (true) { - $r=query('SELECT * FROM `builds` WHERE `backend`="'.$S['conf']['backend_id'].'" AND `status` IN ("queued","cancel","uploading","building","bundling") AND `failed`!="true" ORDER BY `ctime` ASC LIMIT 1'); + $r=query('SELECT * FROM `builds` WHERE `backend`="'.$S['conf']['backend_id'].'" AND `status` IN ("queued","cancel","uploading","building","bundling") AND `flags` NOT LIKE "%f%" ORDER BY `ctime` ASC LIMIT 1'); if ($r->rowCount()) break; else { |