<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-contrib.
</pre>
<p><a href="https://github.com/macports/macports-contrib/commit/d01fa65135dfe3e9e53263f56b261b574e1d25ae">https://github.com/macports/macports-contrib/commit/d01fa65135dfe3e9e53263f56b261b574e1d25ae</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit d01fa65135dfe3e9e53263f56b261b574e1d25ae
</span>Author: Ryan Schmidt <git@ryandesign.com>
AuthorDate: Sat Oct 14 12:22:29 2017 -0500
<span style='display:block; white-space:pre;color:#404040;'> pypi2port: Add size to checksums
</span>---
pypi2port/pypi2port.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/pypi2port/pypi2port.py b/pypi2port/pypi2port.py
</span><span style='display:block; white-space:pre;color:#808080;'>index aff6b3e..1bfc79b 100755
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/pypi2port/pypi2port.py
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/pypi2port/pypi2port.py
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -295,6 +295,7 @@ def checksums(pkg_name, pkg_version):
</span> val = str(subprocess.check_output(command, stderr=subprocess.STDOUT))
val = val.split('=')[1][1:-1]
checksums[chk] = val
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ checksums['size'] = os.path.getsize(file_name)
</span>
dir = '/'.join(file_name.split('/')[0:-1])
if flag:
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -586,7 +587,8 @@ def create_portfile(dict, file_name, dict2):
</span> else:
file.write('checksums md5 XXX \\\n')
file.write(' rmd160 XXX \\\n')
<span style='display:block; white-space:pre;background:#ffe0e0;'>- file.write(' sha256 XXX\n\n')
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file.write(' sha256 XXX \\\n')
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file.write(' size XXX\n\n')
</span>
python_vers = dict['requires_python']
</pre><pre style='margin:0'>
</pre>