From f4e1f64909c27c0aa7015b797e218dfddaa5dd8a Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 2 Aug 2018 09:06:05 +0200 Subject: buildmaster/deletion-links.php: add pkgname filter option --- buildmaster/deletion-links.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/buildmaster/deletion-links.php b/buildmaster/deletion-links.php index 09b2424..efa75db 100644 --- a/buildmaster/deletion-links.php +++ b/buildmaster/deletion-links.php @@ -10,6 +10,11 @@ if (isset($_GET["show_all"])) else $available_filter = ""; +if (isset($_GET["pkgname"])) + $filter = " AND `binary_packages`.`pkgname` REGEXP from_base64(\"" . base64_encode($_GET["pkgname"]) . "\")"; +else + $filter = ""; + $memcache = new Memcache; $memcache->connect('localhost', 11211) or die ('Memcached Connection Error'); $available_upstream_packages = $memcache->get('available_upstream_packages'); @@ -74,7 +79,8 @@ mysql_run_query( $available_filter . " JOIN `available` ON `available`.`pkgname`=`binary_packages`.`pkgname`" . " WHERE `binary_packages_in_repositories`.`is_to_be_deleted`" . - " AND `binary_packages`.`pkgname` NOT LIKE \"lib32-%\"" + " AND `binary_packages`.`pkgname` NOT LIKE \"lib32-%\"" . + $filter ); mysql_run_query( -- cgit v1.2.3-70-g09d2