Commit ed07f8b1 authored by Dustin Ingram's avatar Dustin Ingram

Correctly handle normalized tags

parent 2788dbf9
Fixed an issue where version tags may be added multiple times
......@@ -130,10 +130,12 @@ class InfoCommon:
egg_info may be called more than once for a distribution,
in which case the version string already contains all tags.
"""
return (
version if self.vtags and version.endswith(self.vtags)
else version + self.vtags
)
# Remove the tags if they exist. The tags maybe have been normalized
# (e.g. turning .dev into .dev0) so we can't just compare strings
base_version = parse_version(version).base_version
# Add the tags
return base_version + self.vtags
def tags(self):
version = ''
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment