Skip to content

Commit

Permalink
Merge pull request #28 from fedora-infra/feature/strip-leading-v
Browse files Browse the repository at this point in the history
Strip leading v.
  • Loading branch information
ralphbean committed Feb 26, 2015
2 parents 6a95663 + 4f10bae commit 016b0c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hotness/helpers.py
Expand Up @@ -245,6 +245,10 @@ def cmp_upstream_repo(upstream_v, repo_vr):

repo_version = "%s%s%s" % (repo_vr[0], repo_rc[0], repo_rc[1])

# Strip a leading 'v' which is sometimes prefixed to github releases
# https://github.com/fedora-infra/anitya/issues/102
upstream_v = upstream_v.lstrip('v')

return upstream_cmp(upstream_v, repo_version)


Expand Down

0 comments on commit 016b0c5

Please sign in to comment.