Commits

Alexander Artemenko  committed 7587ca2

Fixed version comparing, to make 0.4_pre and 0.4-pre equal.

  • Participants
  • Parent commits 4fd9703

Comments (0)

Files changed (1)

         found_versions.sort(reverse=True)
         applicable_versions = []
         for (parsed_version, link, version) in found_versions:
-            if version not in req.req:
+            if pkg_resources.safe_version(version) not in req.req:
                 logger.info("Ignoring link %s, version %s doesn't match %s"
                             % (link, version, ','.join([''.join(s) for s in req.req.specs])))
                 continue