Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/buildmaster/to-delete.php
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-02-22 10:35:08 +0100
committerErich Eckner <git@eckner.net>2019-02-22 10:35:08 +0100
commitbc4b84d128177e7b640dfac901161e00c100e439 (patch)
tree8d0fa059770bd852f927aa7fca30af9ab2845fc0 /buildmaster/to-delete.php
parenta9b7ef03f1a574169f65303f37654223d980db41 (diff)
lib/helper.php: available_upstream_packages() new
Diffstat (limited to 'buildmaster/to-delete.php')
-rw-r--r--buildmaster/to-delete.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/buildmaster/to-delete.php b/buildmaster/to-delete.php
index df11750..579bd62 100644
--- a/buildmaster/to-delete.php
+++ b/buildmaster/to-delete.php
@@ -1,5 +1,6 @@
<?php
require_once "../init.php";
+require_once BASE . "/lib/helper.php";
require_once BASE . "/lib/mysql.php";
$result = mysql_run_query(
@@ -19,10 +20,7 @@ require_once BASE . "/lib/mysql.php";
"AND `repositories`.`is_on_master_mirror`"
);
- $available = explode(
- "\n",
- shell_exec("find /var/lib/pacman/ -name '*.db' -exec tar -tzf {} \; | sed -n 's,-[^-]\+-[^-]\+/$,,;T;p'")
- );
+ $available = available_upstream_packages('pkgname');
$available = array_combine( $available, $available);
?>
<html>