diff options
author | Remi Collet <remi@remirepo.net> | 2024-10-16 08:18:33 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2024-10-16 08:18:33 +0200 |
commit | c942d79afe5e572c55ba0e8dc01c0c93cde40cfa (patch) | |
tree | e2494dfc1a14953d290ba2e8f29f74e6e2c57233 /rpm.php | |
parent | 892a95f8962e0cdab8883f7aab4e428f61dbdea9 (diff) |
Diffstat (limited to 'rpm.php')
-rw-r--r-- | rpm.php | 26 |
1 files changed, 11 insertions, 15 deletions
@@ -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<br/>", - $rpm['ver'], - $rpm['rel'] + "%s<br/>", + $rpm['ver'] ); } else { $display .= sprintf( - "<strong>%s</strong>-%s<br/>", - $rpm['ver'], - $rpm['rel'] + "<strong>%s</strong><br/>", + $rpm['ver'] ); } if ( $verup==$verpm ) { @@ -192,9 +191,8 @@ function report($db, $type) break; case "": $display .= sprintf( - "<strong>%s</strong>-%s<br/>", - $rpm['ver'], - $rpm['rel'] + "<strong>%s</strong><br/>", + $rpm['ver'] ); if ( $verup==$verpm ) { $class="check"; @@ -202,10 +200,9 @@ function report($db, $type) break; case "updates": $display .= sprintf( - "<strong>%s</strong>-%s". + "<strong>%s</strong>". "<br/><small>(%s)</small><br/>", $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<br/><small>(%s)</small>", + "%s<br/><small>(%s)</small>", $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 +?> |