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-06-11 11:05:00 +0200
committerErich Eckner <git@eckner.net>2018-06-11 11:05:00 +0200
commit4ce761c0145ae343b2a464742cd4eeca03b84e4b (patch)
tree9b484c2c69ec328243ba1c7c86207a5fa02ec6c7
parenta476360e016e7f88dee9429b463c57a2aba122df (diff)
buildmaster/to-delete.php: check if package was deleted upstream
-rw-r--r--buildmaster/to-delete.php15
1 files changed, 14 insertions, 1 deletions
diff --git a/buildmaster/to-delete.php b/buildmaster/to-delete.php
index 27b0678..99a386c 100644
--- a/buildmaster/to-delete.php
+++ b/buildmaster/to-delete.php
@@ -35,7 +35,20 @@ if ($result -> num_rows > 0) {
$count = 0;
while ($row = $result->fetch_assoc()) {
+
+ if (strstr(
+ file_get_contents(
+ "https://www.archlinux.org/packages/search/json/?q=" .
+ $row["pkgname"]
+ ),
+ "\"pkgname\": \"".$row["pkgname"]."\""
+ ) === FALSE)
+ $color = "#00FF00";
+ else
+ $color = "#FF0000";
+
$rows[$count] =
+ "<font color=\"" . $color . "\">" .
$row["repo"] . "/" .
$row["pkgname"] . "-";
if ($row["epoch"] != "0")
@@ -47,7 +60,7 @@ if ($result -> num_rows > 0) {
$row["pkgver"] . "-" .
$row["pkgrel"] . "." .
$row["sub_pkgrel"] . "-" .
- $row["arch"] . ".pkg.tar.xz";
+ $row["arch"] . ".pkg.tar.xz</font>";
$count++;
}