forked from pool/python-httplib2
- Drop SLES parts of ca_certs_locater.py, it's meant for openSUSE only
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httplib2?expand=0&rev=39
This commit is contained in:
parent
f1d9144b77
commit
579330f9b9
@ -1,21 +1,12 @@
|
||||
#
|
||||
# httplib2 system SSL certificate bundle locator for openSUSE / SLES.
|
||||
# openSUSE has /etc/ssl/ca-bundle.pem (from package ca-certificates) but on
|
||||
# SLES, it's only individual files (from openssl-certs)
|
||||
# httplib2 system SSL certificate bundle locator for openSUSE.
|
||||
#
|
||||
# Author: Sascha Peilicke <speilicke@suse.com>
|
||||
#
|
||||
|
||||
|
||||
def get():
|
||||
for line in open("/etc/SuSE-release"):
|
||||
if "SUSE Linux Enterprise Server" in line:
|
||||
# Python-2.x doesn't support loading from a directory containing
|
||||
# PEM files, thus we have to use a bundle created by hand (and
|
||||
# refreshed with updates of either httpli2 or openssl-certs).
|
||||
return "ca-bundle.pem"
|
||||
else:
|
||||
return "/etc/ssl/ca-bundle.pem"
|
||||
return "/etc/ssl/ca-bundle.pem"
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 3 08:26:46 UTC 2013 - speilicke@suse.com
|
||||
|
||||
- Drop SLES parts of ca_certs_locater.py, it's meant for openSUSE only
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 20 11:48:15 UTC 2013 - speilicke@suse.com
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user