[Collab-qa-commits] r2320 - udd/udd
Andreas Tille
tille at alioth.debian.org
Sat May 12 21:03:51 UTC 2012
Author: tille
Date: 2012-05-12 21:03:51 +0000 (Sat, 12 May 2012)
New Revision: 2320
Modified:
udd/udd/blends_prospective_gatherer.py
Log:
Cope with non-optimal Vcs-Browser fields which are actually not really wrong
Modified: udd/udd/blends_prospective_gatherer.py
===================================================================
--- udd/udd/blends_prospective_gatherer.py 2012-05-12 20:43:35 UTC (rev 2319)
+++ udd/udd/blends_prospective_gatherer.py 2012-05-12 21:03:51 UTC (rev 2320)
@@ -251,7 +251,8 @@
tmp_src = re.sub('/$', '', src['vcs-browser']) # same with string in debian/control to enable comparison after further changes below
tmp_src = re.sub('\.git;a=summary$', '.git', tmp_src)
tmp_src = re.sub('/viewsvn/', '/wsvn/', tmp_src) # machine-readable gatherer implies /wsvn/ but specifying /viewsvn/ does no harm
- tmp_src = re.sub('/anonscm.debian.org/gitweb', '/git.debian.org', tmp_src)
+ tmp_src = re.sub('/anonscm.debian.org/gitweb/\?p=', '/git.debian.org/?p=', tmp_src)
+ tmp_src = re.sub('/anonscm.debian.org/git/([^?])', '/git.debian.org/?p=\\1', tmp_src) # Add missing '?p='
tmp_src = re.sub('/anonscm.debian.org/viewvc', '/svn.debian.org/wsvn', tmp_src) # FIXME: is it correct to assume SVN here??? - probably not
if tmp_prosp != tmp_src:
tmp_src = re.sub('^git:', 'http:', tmp_src) # check for usual error in specifying Vcs-Browser by just leaving 'git:' as protocol
More information about the Collab-qa-commits
mailing list