summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--smarty/templates/rpmphp/zoom.tpl4
-rw-r--r--zoom.php6
2 files changed, 8 insertions, 2 deletions
diff --git a/smarty/templates/rpmphp/zoom.tpl b/smarty/templates/rpmphp/zoom.tpl
index 82e1a54..4dcd7a2 100644
--- a/smarty/templates/rpmphp/zoom.tpl
+++ b/smarty/templates/rpmphp/zoom.tpl
@@ -78,7 +78,7 @@
{if $p->repo_main neq $prev}
{if $fedpkg}
{getBranchPeople branch=$p->repo_main people='owner'}
- {elseif $p->active}
+ {elseif $p->askpkgdb}
{$ajax_infos}
{/if}
{/if}
@@ -87,7 +87,7 @@
{if $p->repo_main neq $prev}
{if $fedpkg}
{getBranchPeople branch=$p->repo_main people='people'}
- {elseif $p->active}
+ {elseif $p->askpkgdb}
{$ajax_infos}
{/if}
{/if}
diff --git a/zoom.php b/zoom.php
index 0cde05f..502b51a 100644
--- a/zoom.php
+++ b/zoom.php
@@ -188,6 +188,12 @@ if ( !isset($name) || !$name ) {
if ($rpm->location) {
$rpm->rpmurl = $rpm->repourl . $rpm->location;
}
+ $rpm->askpkgdb = false;
+ if ($rpm->active
+ && (substr($rpm->repo_main,0,1)=='f'
+ || substr($rpm->repo_sub,0,4)=='epel')) {
+ $rpm->askpkgdb = true;
+ }
$packages[] = $rpm;
if ( $rpm->repo_main != $prev ) {
$prev = $rpm->repo_main;