diff options
author | Remi Collet <fedora@famillecollet.com> | 2010-10-31 18:30:50 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2010-10-31 18:30:50 +0100 |
commit | 243f517f1fa0548b27a33e8a429a780a4a587e88 (patch) | |
tree | 1be86f56705a817ee8c3d41e0f07294897abaa1a | |
parent | efc4cbd224958735e5673507c2acd4efe43ffc65 (diff) |
fix display version when only unstable exists
-rw-r--r-- | pkgdb-ajax.php | 1 | ||||
-rw-r--r-- | rpm.php | 4 | ||||
-rw-r--r-- | zoom.php | 3 |
3 files changed, 4 insertions, 4 deletions
diff --git a/pkgdb-ajax.php b/pkgdb-ajax.php index 574bdc0..a2b84ae 100644 --- a/pkgdb-ajax.php +++ b/pkgdb-ajax.php @@ -80,6 +80,5 @@ if ( !isset($name) || !$name ) { } } } -error_log("RETURN:".print_r($fedpkg, true)); echo json_encode($fedpkg); ?>
\ No newline at end of file @@ -135,8 +135,8 @@ function report($db, $type) if ($up['stable']) { $package['upstream_stable'] = $up['stable']; } - if ($up['stable'] - && (!$up['unstable'] + if ($up['unstable'] + && (!$up['stable'] || $up['stable']!=$up['unstable']) ) { $package['upstream_unstable'] = $up['unstable'] . @@ -142,12 +142,13 @@ if ( !isset($name) || !$name ) { if ($up && $up['stable']) { $summary['Stabe version'] = $up['stable']; } - if ($up && $up['stable'] && $up['stable']!=$up['unstable']) { + if ($up && $up['unstable'] && $up['stable']!=$up['unstable']) { $summary['Unstable version'] = $up['unstable']; if ($up['state']) { $summary['Unstable version'] .= ' (' . $up['state'] . ')'; } } + if ($owner && $owner->owner) { $summary['Owner'] = $owner->owner; if ($owner->cc) { |