[122289] branches/gsoc14-pip2port/pypi2port.py
gaurav at macports.org
gaurav at macports.org
Sat Jul 19 14:07:44 PDT 2014
Revision: 122289
https://trac.macports.org/changeset/122289
Author: gaurav at macports.org
Date: 2014-07-19 14:07:43 -0700 (Sat, 19 Jul 2014)
Log Message:
-----------
Updated master sites
Modified Paths:
--------------
branches/gsoc14-pip2port/pypi2port.py
Modified: branches/gsoc14-pip2port/pypi2port.py
===================================================================
--- branches/gsoc14-pip2port/pypi2port.py 2014-07-19 20:23:12 UTC (rev 122288)
+++ branches/gsoc14-pip2port/pypi2port.py 2014-07-19 21:07:43 UTC (rev 122289)
@@ -319,10 +319,10 @@
os.getenv('home_page', '')))
try:
- master_site = dict['release_url']
+ master_site = '/'.join(dict2[0]['url'].split('/')[0:-1])
except:
- if dict2:
- master_site = '/'.join(dict2[0]['url'].split('/')[0:-1])
+ if dict['release_url']:
+ master_site = dict['release_url']
else:
master_site = os.getenv('master_site', '')
if master_site:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140719/ae65e93f/attachment.html>
More information about the macports-changes
mailing list