Commits

Vinay Sajip committed 15b001b

Fixed bug in digest computation.

Comments (0)

Files changed (1)

distlib/locators.py

                 md = dist.metadata
                 md.source_url = info['url']
                 # TODO SHA256 digest
-                if 'digest' in info:
+                if 'digest' in info and info['digest']:
                     dist.digest = ('md5', info['digest'])
                 md.dependencies = info.get('new-requirements', {})
                 dist.exports = info.get('exports', {})