Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-08-02 09:06:05 +0200
committerErich Eckner <git@eckner.net>2018-08-02 09:06:05 +0200
commitf4e1f64909c27c0aa7015b797e218dfddaa5dd8a (patch)
treed0d6a3b296411211893733a953dc68302f7ced61
parent6f4acf5ae6af98ba1b6b28a5047c9b15f6b60949 (diff)
buildmaster/deletion-links.php: add pkgname filter option
-rw-r--r--buildmaster/deletion-links.php8
1 files changed, 7 insertions, 1 deletions
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(