From 4ce761c0145ae343b2a464742cd4eeca03b84e4b Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 11 Jun 2018 11:05:00 +0200 Subject: buildmaster/to-delete.php: check if package was deleted upstream --- buildmaster/to-delete.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'buildmaster/to-delete.php') 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] = + "" . $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"; $count++; } -- cgit v1.2.3-70-g09d2