From 6f2cf3f10c992ae2b5989bcaa17aa7356417a933 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 1 Aug 2010 17:14:53 +0800 Subject: link to gitweb, fixes #65 --- zoom.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'zoom.php') diff --git a/zoom.php b/zoom.php index a7ec090..a353c77 100644 --- a/zoom.php +++ b/zoom.php @@ -164,8 +164,8 @@ if ( !isset($name) || !$name ) { '?bug_status=NEW&bug_status=ASSIGNED&bug_status=ON_QA' . '&component=' . $name; } - $summary['ViewVC'] = 'http://cvs.fedoraproject.org/viewvc/rpms/' . - $name . '/'; + $summary['ViewVC'] + = 'http://pkgs.fedoraproject.org/gitweb/?p=' . $name . '.git'; $summary['PkgDB'] = $fedcli->getPackageURL($name); -- cgit From 2091997e6d1f10b2ea0093483678541c5bec35f3 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 1 Aug 2010 17:28:11 +0800 Subject: Add link to src.rpm, fixes #64 --- zoom.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'zoom.php') diff --git a/zoom.php b/zoom.php index a353c77..55f2920 100644 --- a/zoom.php +++ b/zoom.php @@ -63,6 +63,8 @@ $smarty->assign('page_title', 'Package: ' . $name); function getBranchPeople($params) { global $fedpkg; + + $branch = $people = null; // avoid IDE warning extract($params); $ret = null; if ($branch == 'rawhide' && isset($fedpkg['devel']['owner']) ) { @@ -96,7 +98,8 @@ if ( !isset($name) || !$name ) { try { $db = new PDO ("mysql:dbname=" . MYBASE . ";host=" . MYHOST, MYUSER, MYPASS); - $sql = "SELECT rpm.* + $sql = "SELECT rpm.*, + CONCAT(repo.url,rpm.name,'-',rpm.ver,'-',rpm.rel,'.src.rpm') as rpmurl FROM rpm INNER JOIN repo ON (repo.main=rpm.repo_main AND repo.sub=rpm.repo_sub) WHERE rpm.name='$name' -- cgit From 14c9846503dfe5dce78205001bae82a75c557116 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 1 Aug 2010 18:15:03 +0800 Subject: rename link from ViewVC to GitWeb --- zoom.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zoom.php') diff --git a/zoom.php b/zoom.php index 55f2920..0a1c2e1 100644 --- a/zoom.php +++ b/zoom.php @@ -167,7 +167,7 @@ if ( !isset($name) || !$name ) { '?bug_status=NEW&bug_status=ASSIGNED&bug_status=ON_QA' . '&component=' . $name; } - $summary['ViewVC'] + $summary['GitWeb'] = 'http://pkgs.fedoraproject.org/gitweb/?p=' . $name . '.git'; $summary['PkgDB'] = $fedcli->getPackageURL($name); -- cgit From 8aebf3179ed6b21d638218985922dc96fdcbb3c3 Mon Sep 17 00:00:00 2001 From: "Johan \"Papa\" Cwiklinski" Date: Sun, 1 Aug 2010 13:18:39 +0200 Subject: Remove hack that renames devel branch to rawhide --- zoom.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'zoom.php') diff --git a/zoom.php b/zoom.php index 0a1c2e1..11bf489 100644 --- a/zoom.php +++ b/zoom.php @@ -67,13 +67,7 @@ function getBranchPeople($params) $branch = $people = null; // avoid IDE warning extract($params); $ret = null; - if ($branch == 'rawhide' && isset($fedpkg['devel']['owner']) ) { - if ( !$people || $people == '' || $people == 'owner' ) { - $ret = $fedpkg['devel']['owner']; - } else if ( $people == 'people') { - $ret_tmp = $fedpkg['devel']['people']; - } - } else if (isset($fedpkg[$branch]['owner'])) { + if (isset($fedpkg[$branch]['owner'])) { if ( !$people || $people == '' || $people == 'owner' ) { $ret = $fedpkg[$branch]['owner']; } else if ( $people == 'people') { -- cgit