[libconfig-model-dpkg-perl] 03/05: Recommend Vcs-Browser field values pointing to cgit web frontend
Salvatore Bonaccorso
carnil at debian.org
Sun Aug 3 18:39:30 UTC 2014
This is an automated email from the git hooks/post-receive script.
carnil pushed a commit to branch master
in repository libconfig-model-dpkg-perl.
commit bb994fcfd1d3de90aa3a47690ff2c218fe14f4a7
Author: Salvatore Bonaccorso <carnil at debian.org>
Date: Sun Aug 3 20:12:49 2014 +0200
Recommend Vcs-Browser field values pointing to cgit web frontend
Recommend the cgit based URLs for the Vcs-Browser field instead of the
gitweb based URLs.
---
lib/Config/Model/models/Dpkg/Control/Source.pl | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/lib/Config/Model/models/Dpkg/Control/Source.pl b/lib/Config/Model/models/Dpkg/Control/Source.pl
index 5bba5cb..389ae8e 100644
--- a/lib/Config/Model/models/Dpkg/Control/Source.pl
+++ b/lib/Config/Model/models/Dpkg/Control/Source.pl
@@ -207,7 +207,7 @@ in Debian developer reference.',
{
'compute' => {
'allow_override' => '1',
- 'formula' => '$maintainer =~ /(pkg-(?:perl|ruby-extras))/ ? "http://anonscm.debian.org/gitweb/?p=$1/packages/$pkgname.git" : undef ;',
+ 'formula' => '$maintainer =~ /(pkg-(?:perl|ruby-extras))/ ? "https://anonscm.debian.org/cgit/$1/packages/$pkgname.git" : undef ;',
'use_eval' => '1',
'variables' => {
'maintainer' => '- Maintainer',
@@ -223,9 +223,10 @@ The information is meant to be useful for the final user, willing to browse the
'value_type' => 'uniline',
'warn_unless' => {
'debian-uri' => {
- 'code' => '!defined $_ or ! /debian.org/ or m{^https?://anonscm.debian.org/(viewvc|gitweb|loggerhead)} ;',
+ 'code' => '!defined $_ or ! /debian.org/ or m{^https?://anonscm.debian.org/(viewvc|cgit|loggerhead)} ;',
'fix' => 's{https?://svn\\.debian\\.org/\\w+svn/}{http://anonscm.debian.org/viewvc/};
-s{http://git.debian.org/\\?p=}{http://anonscm.debian.org/gitweb/?p=};
+s{http://git.debian.org/\\?p=}{https://anonscm.debian.org/cgit/};
+s{http://anonscm.debian.org/gitweb/?p=}{https://anonscm.debian.org/cgit/};
s{http://bzr.debian.org/loggerhead/}{http://anonscm.debian.org/loggerhead/};',
'msg' => 'URL to debian system is not the recommended one'
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libconfig-model-dpkg-perl.git
More information about the Pkg-perl-cvs-commits
mailing list