summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@archlinux.org>2015-10-24 18:22:25 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2015-10-24 18:22:25 +0200
commit5d119c02ea81df9f4f688e2fb2ecf0f15e21ad33 (patch)
tree82bb7d664893b61217d93f7201b926613dc8124d /web
parentb74a87abfcd9b9533c0c2a654894c8d37c0a6018 (diff)
downloadaurweb-5d119c02ea81df9f4f688e2fb2ecf0f15e21ad33.tar.xz
Always retrieve dependency providers
Since commit 16765d5 (Track providers in the official repositories, 2015-10-21), we know all packages and virtual provisions from the official repositories. Always obtain and display all providers from both the official repositories and the AUR. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'web')
-rw-r--r--web/lib/pkgfuncs.inc.php19
1 files changed, 8 insertions, 11 deletions
diff --git a/web/lib/pkgfuncs.inc.php b/web/lib/pkgfuncs.inc.php
index 82408fc..34ec2c5 100644
--- a/web/lib/pkgfuncs.inc.php
+++ b/web/lib/pkgfuncs.inc.php
@@ -326,17 +326,14 @@ function pkg_depend_link($name, $type, $cond, $arch, $pkg_id) {
$desc = '(unknown)';
}
- $providers = array();
- if (is_null($pkg_id)) {
- /*
- * TODO: We currently perform one SQL query per nonexistent
- * package dependency. It would be much better if we could
- * annotate dependency data with providers so that we already
- * know whether a dependency is a "provision name" or a package
- * from the official repositories at this point.
- */
- $providers = pkg_providers($name);
- }
+ /*
+ * TODO: We currently perform one SQL query per nonexistent package
+ * dependency. It would be much better if we could annotate dependency
+ * data with providers so that we already know whether a dependency is
+ * a "provision name" or a package from the official repositories at
+ * this point.
+ */
+ $providers = pkg_providers($name);
$link = htmlspecialchars($name);
foreach ($providers as $provider) {