summaryrefslogtreecommitdiffstats
path: root/zoom.php
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-12-16 16:52:32 +0100
committerRemi Collet <remi@remirepo.net>2020-12-16 16:52:32 +0100
commitb1ab0e6891f5ff0db6140a0846eb7d4c9af69f42 (patch)
tree8b4821ede32fdabcf67f0bdccaae8f49751178d2 /zoom.php
parent8a3a457f7110ee83a163d10f8c2abe77447e45c9 (diff)
avoid warnings, pkgdb is dead
Diffstat (limited to 'zoom.php')
-rw-r--r--zoom.php15
1 files changed, 10 insertions, 5 deletions
diff --git a/zoom.php b/zoom.php
index e9ec55c..d843ea5 100644
--- a/zoom.php
+++ b/zoom.php
@@ -131,7 +131,7 @@ if ( !isset($name) || !$name ) {
$summary['Description'] = (
(isset($fedpkg['devel']['package']['description'])) ?
$fedpkg['devel']['package']['description'] :
- $ajax_infos
+ ($ajax_infos ?? '')
);
if ( $rpm->url ) {
$summary['URL'] = $rpm->url;
@@ -169,11 +169,11 @@ if ( !isset($name) || !$name ) {
$summary['Fedora git'] = "https://src.fedoraproject.org/cgit/rpms/$name.git/";
$summary['Packages'] = "https://apps.fedoraproject.org/packages/$name";
- if (isset($_GET['pkgdb'])) {
- $fedpkg = $fedcli->getPackageInfo($name);
- } else {
+ //if (isset($_GET['pkgdb'])) {
+ // $fedpkg = $fedcli->getPackageInfo($name);
+ //} else {
$fedpkg = false;
- }
+ //}
$i=0;
$prev=false;
@@ -182,12 +182,14 @@ if ( !isset($name) || !$name ) {
$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;
@@ -212,10 +214,13 @@ $ariane[] = array(
'url' => '#',
'text' => 'Package: ' . $name
);
+/*
$ajax_infos = '<span class="ajax">(wait for ajax or <a href="' .
$_SERVER['PHP_SELF'] . '?rpm='.$name.
'&amp;pkgdb=1">reload with pkgdb</a>)</span>';
$smarty->assign('ajax_infos', $ajax_infos);
+*/
+$smarty->assign('ajax_infos', '');
$smarty->assign('ariane', $ariane);
$smarty->assign('page_title', 'Package: ' . $name);