From b1ab0e6891f5ff0db6140a0846eb7d4c9af69f42 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 16 Dec 2020 16:52:32 +0100 Subject: avoid warnings, pkgdb is dead --- zoom.php | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'zoom.php') 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 = '(wait for ajax or reload with pkgdb)'; $smarty->assign('ajax_infos', $ajax_infos); +*/ +$smarty->assign('ajax_infos', ''); $smarty->assign('ariane', $ariane); $smarty->assign('page_title', 'Package: ' . $name); -- cgit