[133257] contrib/pypi2port/pypi2port.py
gaurav at macports.org
gaurav at macports.org
Tue Feb 24 03:23:36 PST 2015
Revision: 133257
https://trac.macports.org/changeset/133257
Author: gaurav at macports.org
Date: 2015-02-24 03:23:36 -0800 (Tue, 24 Feb 2015)
Log Message:
-----------
contrib/pypi2port: Suppressed Unverified request message
Modified Paths:
--------------
contrib/pypi2port/pypi2port.py
Modified: contrib/pypi2port/pypi2port.py
===================================================================
--- contrib/pypi2port/pypi2port.py 2015-02-24 02:24:18 UTC (rev 133256)
+++ contrib/pypi2port/pypi2port.py 2015-02-24 11:23:36 UTC (rev 133257)
@@ -99,7 +99,9 @@
url = dict['url']
file_name = src_dir + '/' + dict['filename']
+ # print("HERE")
r = requests.get(url)
+
if r.status_code == 200 :
with open(file_name, 'wb') as f:
meta = r.headers['content-length']
@@ -276,7 +278,7 @@
""" Searches if the distfile listed is present or not """
try:
url = client.release_urls(name, version)[0]['url']
- r = requests.get(url, verify=False)
+ r = requests.get(url)
if not r.status_code == 200:
raise Exception('No distfile')
except:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150224/a7e9154d/attachment.html>
More information about the macports-changes
mailing list