[122529] branches/gsoc14-pip2port

gaurav at macports.org gaurav at macports.org
Wed Jul 23 11:13:00 PDT 2014


Revision: 122529
          https://trac.macports.org/changeset/122529
Author:   gaurav at macports.org
Date:     2014-07-23 11:13:00 -0700 (Wed, 23 Jul 2014)
Log Message:
-----------
Distname addition in portfile and using dgst for checksums

Modified Paths:
--------------
    branches/gsoc14-pip2port/pypi2port
    branches/gsoc14-pip2port/pypi2port.py

Modified: branches/gsoc14-pip2port/pypi2port
===================================================================
--- branches/gsoc14-pip2port/pypi2port	2014-07-23 17:51:52 UTC (rev 122528)
+++ branches/gsoc14-pip2port/pypi2port	2014-07-23 18:13:00 UTC (rev 122529)
@@ -210,10 +210,10 @@
 #                checksums.insert(0, h.hexdigest())
 #                checksums.insert(1, hashlib.sha256(f.read()).hexdigest())
 
-            command = "openssl rmd160 "+file_name
+            command = "openssl dgst -rmd160 "+file_name
             checksums.insert(0,subprocess.check_output(command, shell=True, stderr=subprocess.STDOUT).split('=')[1].strip())
 
-            command = "openssl sha256 "+file_name
+            command = "openssl dgst -sha256 "+file_name
             checksums.insert(1,subprocess.check_output(command, shell=True, stderr=subprocess.STDOUT).split('=')[1].strip())
 
             dir = '/'.join(file_name.split('/')[0:-1])
@@ -330,8 +330,8 @@
             master_site_exists = True
         else:
             master_site_exists = False
-#        file.write('distname            py-{0}{1}\n\n'.format(
-#                   dict['name'], dict['version']))
+        file.write('distname            {0}-{1}\n\n'.format(
+                   dict['name'], dict['version']))
         checksums_values = checksums(dict['name'], dict['version'])
         if checksums_values:
             file.write('checksums           rmd160  {0} \\\n'.format(

Modified: branches/gsoc14-pip2port/pypi2port.py
===================================================================
--- branches/gsoc14-pip2port/pypi2port.py	2014-07-23 17:51:52 UTC (rev 122528)
+++ branches/gsoc14-pip2port/pypi2port.py	2014-07-23 18:13:00 UTC (rev 122529)
@@ -210,10 +210,10 @@
 #                checksums.insert(0, h.hexdigest())
 #                checksums.insert(1, hashlib.sha256(f.read()).hexdigest())
 
-            command = "openssl rmd160 "+file_name
+            command = "openssl dgst -rmd160 "+file_name
             checksums.insert(0,subprocess.check_output(command, shell=True, stderr=subprocess.STDOUT).split('=')[1].strip())
 
-            command = "openssl sha256 "+file_name
+            command = "openssl dgst -sha256 "+file_name
             checksums.insert(1,subprocess.check_output(command, shell=True, stderr=subprocess.STDOUT).split('=')[1].strip())
 
             dir = '/'.join(file_name.split('/')[0:-1])
@@ -330,8 +330,8 @@
             master_site_exists = True
         else:
             master_site_exists = False
-#        file.write('distname            py-{0}{1}\n\n'.format(
-#                   dict['name'], dict['version']))
+        file.write('distname            {0}-{1}\n\n'.format(
+                   dict['name'], dict['version']))
         checksums_values = checksums(dict['name'], dict['version'])
         if checksums_values:
             file.write('checksums           rmd160  {0} \\\n'.format(
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140723/abd5655a/attachment.html>


More information about the macports-changes mailing list