Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/helper.php
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-03-07 10:28:35 +0100
committerErich Eckner <git@eckner.net>2019-03-07 10:28:35 +0100
commit15d7b8ea8c1d75eb7f8613df484a82df6e084123 (patch)
tree5c2aeeea05c6b20cac3b0db6ae0071d32c3a3f5c /lib/helper.php
parentdd93c3ba8689bff1d725d8e3d7f6919419b49013 (diff)
lib/helper.php: check if pacman db exists before running shell command
Diffstat (limited to 'lib/helper.php')
-rw-r--r--lib/helper.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/helper.php b/lib/helper.php
index 29902b7..64f167e 100644
--- a/lib/helper.php
+++ b/lib/helper.php
@@ -215,6 +215,8 @@ function find_upstream_packages_in($repo) {
$parse_package_filename_in_repo = function($filename) use ($repo) {
return parse_package_filename($filename, $repo);
};
+ if (!file_exists("/var/lib/pacman/sync/" . $repo . ".db")
+ return NULL;
return
array_map(
$parse_package_filename_in_repo,