summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rpm.php26
1 files 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<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
+?>