Skip to content

Commit

Permalink
SCM finder: Add issuetracker.google.com
Browse files Browse the repository at this point in the history
Related to #100
  • Loading branch information
jayvdb committed Apr 10, 2020
1 parent 1fbad5a commit cb46bff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pypidb/_scm_url_cleaner.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,9 @@ def _google_code(url):

logger.debug("google code {}".format(url))

if p.netloc == "issuetracker.google.com" and p.path.startswith("/code/"):
p = urlsplit("https://code.google.com/" + p.path[6:])

if p.netloc == "code.google.com":
path = p.path[1:]
if not path: # pragma: no cover
Expand Down Expand Up @@ -692,6 +695,7 @@ class SCMURLCleaner(object):
"code.google.com/archive/a/": _google_code,
"code.google.com/p/": _google_code,
"code.google.com/archive/p/": _google_code,
"issuetracker.google.com/p/": _google_code,
"*.googlecode.com": _google_code,
"git.openstack.org": _get_redirect_location,
"gitlab.gnome.org": _gitlab,
Expand Down

0 comments on commit cb46bff

Please sign in to comment.