Skip to content
Snippets Groups Projects
Commit 8a150008 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

Merge branch...

Merge branch '73-index-error-when-fetching-package-previous-tags-and-there-aren-t-any' into 'master'

Resolve "index error when fetching package previous tags and there aren't any"

Closes #73

See merge request !218
parents 047e22e0 6e5e9dfe
No related branches found
No related tags found
1 merge request!218Resolve "index error when fetching package previous tags and there aren't any"
Pipeline #51577 passed
...@@ -138,6 +138,8 @@ def get_latest_tag_name(gitpkg): ...@@ -138,6 +138,8 @@ def get_latest_tag_name(gitpkg):
for tag in latest_tags for tag in latest_tags
if StrictVersion.version_re.match(tag.name[1:]) if StrictVersion.version_re.match(tag.name[1:])
] ]
if not tag_names: # no tags wee found.
return None
# sort them correctly according to each subversion number # sort them correctly according to each subversion number
tag_names.sort(key=StrictVersion) tag_names.sort(key=StrictVersion)
# take the last one, as it is the latest tag in the sorted tags # take the last one, as it is the latest tag in the sorted tags
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment