From c942d79afe5e572c55ba0e8dc01c0c93cde40cfa Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 16 Oct 2024 08:18:33 +0200 Subject: review pecl list for EL --- rpm.php | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/rpm.php b/rpm.php index 003fc84..04d037f 100644 --- a/rpm.php +++ b/rpm.php @@ -159,8 +159,9 @@ function report($db, $type) if (strpos($repo['sub'], '-os') || strpos($repo['sub'], '-beta') || strpos($repo['sub'], '-base') - || strpos($repo['sub'], '-optional') || strpos($repo['sub'], '-stable') + || strpos($repo['sub'], '-stream') + || strpos($repo['sub'], '-8.10') // Latest 8 as stream is closed ) { // For CentOS $repotype = 'base'; @@ -175,15 +176,13 @@ function report($db, $type) case "base": if ( isset($rpms[$repo['main']."-updates"]) ) { $display .= sprintf( - "%s-%s
", - $rpm['ver'], - $rpm['rel'] + "%s
", + $rpm['ver'] ); } else { $display .= sprintf( - "%s-%s
", - $rpm['ver'], - $rpm['rel'] + "%s
", + $rpm['ver'] ); } if ( $verup==$verpm ) { @@ -192,9 +191,8 @@ function report($db, $type) break; case "": $display .= sprintf( - "%s-%s
", - $rpm['ver'], - $rpm['rel'] + "%s
", + $rpm['ver'] ); if ( $verup==$verpm ) { $class="check"; @@ -202,10 +200,9 @@ function report($db, $type) break; case "updates": $display .= sprintf( - "%s-%s". + "%s". "
(%s)
", $rpm['ver'], - $rpm['rel'], $repo['sub'] ); if ($verup==$verpm && $class!='check') { @@ -214,9 +211,8 @@ function report($db, $type) break; case "testing": $display .= sprintf( - "%s-%s
(%s)", + "%s
(%s)", $rpm['ver'], - $rpm['rel'], $repo['sub'] ); if ($verup==$verpm && !$class) { @@ -281,4 +277,4 @@ try { $page_content = $smarty->fetch('rpm.tpl'); $smarty->assign('page_content', $page_content); $smarty->display('main.tpl'); -?> \ No newline at end of file +?> -- cgit