1
0

- 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:
Sascha Peilicke 2013-07-03 08:23:39 +00:00 committed by Git OBS Bridge
parent f1d9144b77
commit 579330f9b9
2 changed files with 7 additions and 11 deletions

View File

@ -1,20 +1,11 @@
# #
# httplib2 system SSL certificate bundle locator for openSUSE / SLES. # httplib2 system SSL certificate bundle locator for openSUSE.
# openSUSE has /etc/ssl/ca-bundle.pem (from package ca-certificates) but on
# SLES, it's only individual files (from openssl-certs)
# #
# Author: Sascha Peilicke <speilicke@suse.com> # Author: Sascha Peilicke <speilicke@suse.com>
# #
def get(): 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"

View File

@ -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 Thu Jun 20 11:48:15 UTC 2013 - speilicke@suse.com