diff options
Diffstat (limited to 'zoom.php')
-rw-r--r-- | zoom.php | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -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&bug_status=ASSIGNED&bug_status=ON_QA' . + '&component=' . $name; } $summary['ViewVC'] = 'http://cvs.fedoraproject.org/viewvc/rpms/' . $name . '/'; |