diff --git a/distroquery.php b/distroquery.php index 81a14d9..1cddfa8 100644 --- a/distroquery.php +++ b/distroquery.php @@ -311,7 +311,8 @@ $url_prefix = home_url() . "/rpms/"; // RPM provides, requires, obsoletes table echo "
" . _r("Brothers") . " | " . _r("Provides") . " | " . - _r("Obsoletes") . " | " . _r("Requires") . " | " . _r("Requires") . " | " . + _r("Recommends") . " | "; echo "
---|---|---|---|
";
if (isset($j["brothers"])) {
foreach ($j["brothers"] as $brother) {
@@ -353,6 +354,24 @@ $url_prefix = home_url() . "/rpms/";
echo " "; } } + echo " | ";
+ if (isset($j["recommends"])) {
+ foreach ($j["recommends"] as $require) {
+ echo $require["name"];
+ if ($require["flags"] != "") echo " " . $require["flags"] . " " . $require["version"];
+
+ $cnt = 0;
+ if (isset($require["providers"])) {
+ foreach ($require["providers"] as $provider) {
+ $cnt++;
+ $provider_url = $url_prefix . $provider["repository"] . "/" . $provider["name"] . "/" . $arch;
+ echo " [" . $cnt . "]";
+ }
+ }
+ if ($cnt == 0) echo " (" . _r("unresolved") . ")";
+ echo " "; + } + } echo " |