From 7e3cdc92b0a674ef1abf2ec89a9ab3f80ad27596 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 16 Jan 2014 11:07:52 +0100 Subject: manage "beta" repo + save a few space --- all.php | 1 + rpm.php | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/all.php b/all.php index 448751f..0e855d8 100644 --- a/all.php +++ b/all.php @@ -128,6 +128,7 @@ function report ($db) : ""); if (strpos($repo['sub'], '-os') + || strpos($repo['sub'], '-beta') || strpos($repo['sub'], '-base') || strpos($repo['sub'], '-optional') || strpos($repo['sub'], '-stable') diff --git a/rpm.php b/rpm.php index defd172..7ddcb77 100644 --- a/rpm.php +++ b/rpm.php @@ -155,6 +155,7 @@ 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') @@ -199,8 +200,8 @@ function report($db, $type) break; case "updates": $display .= sprintf( - "%s-%s ". - "(%s)
", + "%s-%s". + "
(%s)
", $rpm['ver'], $rpm['rel'], $repo['sub'] @@ -211,7 +212,7 @@ function report($db, $type) break; case "testing": $display .= sprintf( - "%s-%s (%s)
", + "%s-%s
(%s)", $rpm['ver'], $rpm['rel'], $repo['sub'] -- cgit