[143779] contrib/pypi2port/pypi2port.py

raimue at macports.org raimue at macports.org
Mon Dec 21 04:52:35 PST 2015


Revision: 143779
          https://trac.macports.org/changeset/143779
Author:   raimue at macports.org
Date:     2015-12-21 04:52:35 -0800 (Mon, 21 Dec 2015)
Log Message:
-----------
pypi2port:
Last byte of checksums were missing due to incorrect string handling

Modified Paths:
--------------
    contrib/pypi2port/pypi2port.py

Modified: contrib/pypi2port/pypi2port.py
===================================================================
--- contrib/pypi2port/pypi2port.py	2015-12-21 12:47:51 UTC (rev 143778)
+++ contrib/pypi2port/pypi2port.py	2015-12-21 12:52:35 UTC (rev 143779)
@@ -292,7 +292,7 @@
 				command = "openssl " + chk + " " + file_name
 				command = command.split()
 				val = str(subprocess.check_output(command, stderr=subprocess.STDOUT))
-				val = val.split('=')[1][1:-3]
+				val = val.split('=')[1][1:-1]
 				checksums[chk] = val
 
 			dir = '/'.join(file_name.split('/')[0:-1])
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151221/3487fbac/attachment.html>


More information about the macports-changes mailing list