Commit d6938501 authored by Jason R. Coombs's avatar Jason R. Coombs

Leave _version unset if no metadata version was found.

parent 718c66c4
......@@ -2833,7 +2833,8 @@ class EggInfoDistribution(Distribution):
the metadata file itself instead of the filename.
"""
md_version = _version_from_file(self._get_metadata(self.PKG_INFO))
self._version = md_version or self._version
if md_version:
self._version = md_version
return self
......
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