summaryrefslogtreecommitdiffstats
path: root/zoom.php
diff options
context:
space:
mode:
Diffstat (limited to 'zoom.php')
-rw-r--r--zoom.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/zoom.php b/zoom.php
index d115fa2..0ea20cf 100644
--- a/zoom.php
+++ b/zoom.php
@@ -35,7 +35,6 @@
* @since The begining of times.
*/
require 'main.inc.php';
-require 'FedoraClient.php';
$fedcli = new FedoraPkgdb();
@@ -113,6 +112,13 @@ if ( !isset($name) || !$name ) {
$resown=$db->query($sql);
$owner = ($resown ? $resown->fetchObject() : false);
+ if (isset($owner->name)) {
+ // Use exact name (with case) from acl (else pkgdb could fail)
+ $name = $owner->name;
+ $smarty->assign('name', $name);
+ $smarty->assign('page_title', 'Package: ' . $name);
+ }
+
if (!$rpm) {
echo "<h1>$name not found</h1>\n";
} else {
@@ -152,6 +158,11 @@ if ( !isset($name) || !$name ) {
} else {
$summary['Owner'] = $owner->owner;
}
+
+ // Only when owner (so we have the exact name)
+ $summary['Bugzilla'] = 'https://bugzilla.redhat.com/buglist.cgi'.
+ '?bug_status=NEW&amp;bug_status=ASSIGNED&amp;bug_status=ON_QA' .
+ '&amp;component=' . $name;
}
$summary['ViewVC'] = 'http://cvs.fedoraproject.org/viewvc/rpms/' .
$name . '/';