index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2018-03-13 15:51:59 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-03-13 15:51:59 +0100 |
commit | 79a749a8d46ca2b8b018234da307490be79a3116 (patch) | |
tree | 617723cd78d51ab7b879c0b97abd0af466f740d7 | |
parent | 172370cb4be9d705f379f111cf895f67097a255b (diff) |
-rwxr-xr-x | bin/db-update | 15 |
diff --git a/bin/db-update b/bin/db-update index a5fa925..2e8e229 100755 --- a/bin/db-update +++ b/bin/db-update @@ -133,6 +133,12 @@ for source_stability in 'testing' 'staging'; do mysql_join_repositories_repository_stabilities 'subst_r' 'subst_rs' printf ' AND `subst_rs`.`name`="%s"' \ "${source_stability}" + # TODO: we may relax this condition, if we a) got rid of state files + # or b) improved keeping them in sync (*.testing -> /dev/null is not + # implemented, only .tested -> /dev/null) + if [ ! "${source_stability}" = 'staging' ]; then + printf ' AND `subst_bp`.`is_tested`' + fi mysql_join_binary_packages_dependencies mysql_join_dependencies_dependency_types printf ' AND `dependency_types`.`relevant_for_binary_packages`' @@ -152,6 +158,15 @@ for source_stability in 'testing' 'staging'; do printf ' FROM `binary_packages`' mysql_join_binary_packages_repositories printf ' AND `repositories`.`is_on_master_mirror`' + mysql_join_repositories_repository_stabilities + printf ' AND `repository_stabilities`.`name`="%s"' \ + "${source_stability}" + # TODO: we may relax this condition, if we a) got rid of state files + # or b) improved keeping them in sync (*.testing -> /dev/null is not + # implemented, only .tested -> /dev/null) + if [ ! "${source_stability}" = 'staging' ]; then + printf ' AND `binary_packages`.`is_tested`' + fi mysql_join_binary_packages_build_assignments mysql_join_build_assignments_package_sources mysql_join_package_sources_upstream_repositories |