summaryrefslogtreecommitdiff
path: root/web-scripts
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-03-09 13:45:56 +0100
committerErich Eckner <git@eckner.net>2018-03-09 13:45:56 +0100
commit8523496fc17c8afbcfff49b1164a265532a4d9c3 (patch)
treea8881c237d05078c9586f931aee4e43c0ffa7d37 /web-scripts
parent6639027c0396f5c62e12c9762859b0e39c0e6055 (diff)
downloadbuilder-8523496fc17c8afbcfff49b1164a265532a4d9c3.tar.xz
web-scripts/dependencies.php: accept pkgbase via "b=..."
Diffstat (limited to 'web-scripts')
-rw-r--r--web-scripts/dependencies.php6
1 files changed, 6 insertions, 0 deletions
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`" .