index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2018-03-09 13:45:56 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-03-09 13:45:56 +0100 |
commit | 8523496fc17c8afbcfff49b1164a265532a4d9c3 (patch) | |
tree | a8881c237d05078c9586f931aee4e43c0ffa7d37 /web-scripts/dependencies.php | |
parent | 6639027c0396f5c62e12c9762859b0e39c0e6055 (diff) |
-rw-r--r-- | web-scripts/dependencies.php | 6 |
diff --git a/web-scripts/dependencies.php b/web-scripts/dependencies.php index 4f12c52..ad9dbb8 100644 --- a/web-scripts/dependencies.php +++ b/web-scripts/dependencies.php @@ -9,6 +9,8 @@ $match = ""; if (isset($_GET["a"])) $match .= " AND `architectures`.`name`=from_base64(\"" . base64_encode($_GET["a"]) . "\")"; +if (isset($_GET["b"])) + $match .= " AND `package_sources`.`pkgbase`=from_base64(\"" . base64_encode($_GET["b"]) . "\")"; if (isset($_GET["p"])) $match .= " AND `binary_packages`.`pkgname`=from_base64(\"" . base64_encode($_GET["p"]) . "\")"; if (isset($_GET["r"])) @@ -30,6 +32,8 @@ if (! $result = $mysql -> query( " FROM `binary_packages`" . " JOIN `repositories` ON `binary_packages`.`repository`=`repositories`.`id`" . " JOIN `architectures` ON `binary_packages`.`architecture`=`architectures`.`id`" . + " JOIN `build_assignments` ON `binary_packages`.`build_assignment`= `build_assignments`.`id`" . + " JOIN `package_sources` ON `build_assignments`.`package_source`= `package_sources`.`id`" . $match . " JOIN `dependencies` ON `dependencies`.`dependent`=`binary_packages`.`id`" . " JOIN `install_targets` ON `dependencies`.`depending_on`=`install_targets`.`id`" . @@ -45,6 +49,8 @@ if (! $result = $mysql -> query( " FROM `binary_packages`" . " JOIN `repositories` ON `binary_packages`.`repository`=`repositories`.`id`" . " JOIN `architectures` ON `binary_packages`.`architecture`=`architectures`.`id`" . + " JOIN `build_assignments` ON `binary_packages`.`build_assignment`= `build_assignments`.`id`" . + " JOIN `package_sources` ON `build_assignments`.`package_source`= `package_sources`.`id`" . $match . " JOIN `install_target_providers` ON `install_target_providers`.`package`=`binary_packages`.`id`" . " JOIN `dependencies` ON `install_target_providers`.`install_target`=`dependencies`.`depending_on`" . |