[121171] branches/gsoc14-pip2port/pypi2port.py
gaurav at macports.org
gaurav at macports.org
Thu Jun 19 02:35:54 PDT 2014
Revision: 121171
https://trac.macports.org/changeset/121171
Author: gaurav at macports.org
Date: 2014-06-19 02:35:54 -0700 (Thu, 19 Jun 2014)
Log Message:
-----------
master_site variable updated
Modified Paths:
--------------
branches/gsoc14-pip2port/pypi2port.py
Modified: branches/gsoc14-pip2port/pypi2port.py
===================================================================
--- branches/gsoc14-pip2port/pypi2port.py 2014-06-19 09:25:30 UTC (rev 121170)
+++ branches/gsoc14-pip2port/pypi2port.py 2014-06-19 09:35:54 UTC (rev 121171)
@@ -273,11 +273,13 @@
else:
file.write('homepage {0}\n'.format(os.getenv('home_page','')))
-
- if dict2:
- master_site = '/'.join(dict2[0]['url'].split('/')[0:-1])
- else:
- master_site = os.getenv('master_site','')
+ try:
+ master_site = dict['release_url']
+ except:
+ if dict2:
+ master_site = '/'.join(dict2[0]['url'].split('/')[0:-1])
+ else:
+ master_site = os.getenv('master_site','')
if master_site:
file.write('master_sites {0}\n'.format(master_site))
master_site_exists = True
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140619/049f2d4a/attachment.html>
More information about the macports-changes
mailing list