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: ...@@ -130,10 +130,12 @@ class InfoCommon:
egg_info may be called more than once for a distribution, egg_info may be called more than once for a distribution,
in which case the version string already contains all tags. in which case the version string already contains all tags.
""" """
return ( # Remove the tags if they exist. The tags maybe have been normalized
version if self.vtags and version.endswith(self.vtags) # (e.g. turning .dev into .dev0) so we can't just compare strings
else version + self.vtags base_version = parse_version(version).base_version
)
# Add the tags
return base_version + self.vtags
def tags(self): def tags(self):
version = '' 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