index : website | |
Archlinux32 website - obsolete | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2019-03-07 10:28:35 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-03-07 10:28:35 +0100 |
commit | 15d7b8ea8c1d75eb7f8613df484a82df6e084123 (patch) | |
tree | 5c2aeeea05c6b20cac3b0db6ae0071d32c3a3f5c /lib/helper.php | |
parent | dd93c3ba8689bff1d725d8e3d7f6919419b49013 (diff) |
-rw-r--r-- | lib/helper.php | 2 |
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, |