diff options
author | Erich Eckner <git@eckner.net> | 2018-06-11 11:05:00 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-06-11 11:05:00 +0200 |
commit | 4ce761c0145ae343b2a464742cd4eeca03b84e4b (patch) | |
tree | 9b484c2c69ec328243ba1c7c86207a5fa02ec6c7 /buildmaster/to-delete.php | |
parent | a476360e016e7f88dee9429b463c57a2aba122df (diff) | |
download | archweb32-4ce761c0145ae343b2a464742cd4eeca03b84e4b.tar.xz |
buildmaster/to-delete.php: check if package was deleted upstream
Diffstat (limited to 'buildmaster/to-delete.php')
-rw-r--r-- | buildmaster/to-delete.php | 15 |
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++; } |