From 9b4160764ced8ee36e5262d0fa954c71d6898377 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 8 Nov 2018 14:41:50 +0100 Subject: buildmaster/mysql-issues.php buildmaster/mysql-issues.php: repository_stability_relations links against repositories.stability, not repositories.id --- buildmaster/mysql-issues.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'buildmaster/mysql-issues.php') diff --git a/buildmaster/mysql-issues.php b/buildmaster/mysql-issues.php index 33ae438..f5b5d1e 100644 --- a/buildmaster/mysql-issues.php +++ b/buildmaster/mysql-issues.php @@ -37,11 +37,11 @@ require_once BASE . "/lib/mysql.php"; " LEFT JOIN (`binary_packages` AS `subst_bp`" . " JOIN `binary_packages_in_repositories` as `subst_bpir` ON `subst_bp`.`id`=`subst_bpir`.`package`" . " JOIN `repositories` AS `subst_r` ON `subst_bpir`.`repository`=`subst_r`.`id`" . - " JOIN `repository_stability_relations` ON `repository_stability_relations`.`less_stable`=`subst_r`.`id`" . + " JOIN `repository_stability_relations` ON `repository_stability_relations`.`less_stable`=`subst_r`.`stability`" . ")" . " ON `subst_bp`.`pkgname`=`binary_packages`.`pkgname`" . " AND `subst_bp`.`id`!=`binary_packages`.`id`" . - " AND `repository_stability_relations`.`more_stable`=`repositories`.`id`" . + " AND `repository_stability_relations`.`more_stable`=`repositories`.`stability`" . " LEFT JOIN (`binary_packages` AS `subst_buildlist_bp`" . " JOIN `binary_packages_in_repositories` AS `subst_buildlist_bpir` ON `subst_buildlist_bp`.`id`=`subst_buildlist_bpir`.`package`" . " JOIN `repositories` AS `subst_buildlist_r` ON `subst_buildlist_bpir`.`repository`=`subst_buildlist_r`.`id`" . -- cgit v1.2.3-70-g09d2