Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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(