index : website | |
Archlinux32 website - obsolete | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2019-02-22 10:35:08 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-02-22 10:35:08 +0100 |
commit | bc4b84d128177e7b640dfac901161e00c100e439 (patch) | |
tree | 8d0fa059770bd852f927aa7fca30af9ab2845fc0 /buildmaster/deletion-links.php | |
parent | a9b7ef03f1a574169f65303f37654223d980db41 (diff) |
-rw-r--r-- | buildmaster/deletion-links.php | 14 |
diff --git a/buildmaster/deletion-links.php b/buildmaster/deletion-links.php index f26208a..54329bb 100644 --- a/buildmaster/deletion-links.php +++ b/buildmaster/deletion-links.php @@ -1,5 +1,6 @@ <?php require_once "../init.php"; +require_once BASE . "/lib/helper.php"; require_once BASE . "/lib/mysql.php"; $edges = ""; @@ -15,18 +16,7 @@ if (array_key_exists("pkgname", $_GET)) else $filter = ""; -$available_upstream_packages = apcu_fetch('available_upstream_packages', $apcu_success); -if ($apcu_success == false) { - $available_upstream_packages = explode( - "\n", - shell_exec( - "find /var/lib/pacman/ -name '*.db' -exec tar -tzf {} \; " . - "| sed -n 's,-[^-]\+-[^-]\+/$,,;T;p' " . - "| sort -u" - ) - ); - apcu_store('available_upstream_packages', $available_upstream_packages, 1800); -} +$available_upstream_packages = available_upstream_packages('pkgname'); mysql_run_query( "CREATE TEMPORARY TABLE `available` (" . |