Add gentoo cert path for OS-DEFAULT
Signed-off-by: Espen Henriksen <dev@henriksen.is> Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
parent
c287ecb7cc
commit
4ee1518b64
@ -21,6 +21,7 @@ __DEF_OS_LOCATIONS = {
|
||||
],
|
||||
'linux-ubuntu': '/etc/ssl/certs/ca-certificates.crt',
|
||||
'linux-debian': '/etc/ssl/certs/ca-certificates.crt',
|
||||
'linux-gentoo': '/etc/ssl/certs/ca-certificates.crt',
|
||||
'linux-fedora': '/etc/pki/tls/certs/ca-bundle.crt',
|
||||
'linux-redhat': '/etc/pki/tls/certs/ca-bundle.crt',
|
||||
'linux-suse': '/etc/ssl/ca-bundle.pem',
|
||||
@ -43,7 +44,7 @@ def get_os_name():
|
||||
if OS.startswith('linux'):
|
||||
DISTRO = platform.linux_distribution()[0]
|
||||
if DISTRO:
|
||||
OS = OS + "-%s" % DISTRO.lower()
|
||||
OS = OS + "-%s" % DISTRO.split()[0].lower()
|
||||
|
||||
return OS
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user