summaryrefslogtreecommitdiffstats
path: root/rpm.php
diff options
context:
space:
mode:
Diffstat (limited to 'rpm.php')
-rw-r--r--rpm.php15
1 files changed, 9 insertions, 6 deletions
diff --git a/rpm.php b/rpm.php
index 8b140a8..37c54b5 100644
--- a/rpm.php
+++ b/rpm.php
@@ -61,7 +61,8 @@ function report($db, $type)
{
global $what, $smarty;
$packages = null;
- $repos = listRepos($db);
+ $rpmrepo = new TableRpmRepo($db);
+ $repos = $rpmrepo->getAllRepoHash();
$smarty->assign('repos', $repos);
$i=0;
@@ -131,24 +132,26 @@ function report($db, $type)
' <small>(' . $upstream->state . ')</small>';
}
- $verup = strtolower($upstream->stable ? $upstream->stable : $upstream->unstable);
+ $verup = strtolower(
+ $upstream->stable ? $upstream->stable : $upstream->unstable
+ );
$versions = null;
foreach ( $repos as $repomain ) {
$display="";
$class="";
foreach ( $repomain as $k=>$repo ) {
- if ( isset($rpms[$repo->main."-".$repo->sub]) ) {
- $rpm=$rpms[$repo->main."-".$repo->sub];
+ if ( isset($rpms[$repo['main']."-".$repo['sub']]) ) {
+ $rpm=$rpms[$repo['main']."-".$repo['sub']];
$verpm=$rpm->ver;
if (preg_match("/\.((beta|RC)\d*)\./i", $rpm->rel, $res)) {
$verpm .= strtolower($res[1]);
}
- switch ($repo->sub) {
+ switch ($repo['sub']) {
case "base":
- if ( isset($rpms[$repo->main."-updates"]) ) {
+ if ( isset($rpms[$repo['main']."-updates"]) ) {
$display .= sprintf(
"%s-%s<br/>",
$rpm->ver,