§
    Žpma   ã                   ó–   — d Z ddlZddlZ	 ddlmZ n# e$ r	 ddlmZ Y nw xY wdgdgdgddgdgdgdgd	gd	gd
gd
gdgdœZd„ Zd„ Zd„ Z	dS )zp
Copyright 2006-2018 Eygene A. Ryabinkin & contributors.

Module that supports distribution-specific functions.
é    N)Úlinux_distributionz&/usr/local/share/certs/ca-root-nss.crtz/etc/ssl/cert.pemz(/opt/local/share/curl/curl-ca-bundle.crtz/usr/local/etc/openssl/cert.pemz"/etc/ssl/certs/ca-certificates.crtz /etc/pki/tls/certs/ca-bundle.crtz/etc/ssl/ca-bundle.pem)ÚfreebsdÚopenbsdÚ	dragonflyÚdarwinzlinux-ubuntuzlinux-debianzlinux-gentoozlinux-fedorazlinux-redhatz
linux-susezlinux-opensuseú
linux-archc                  óL  — t          j        ¦   «                              ¦   «         } |                      d¦  «        rit	          ¦   «         d         }|r2| d|                     ¦   «         d                              ¦   «         z  z   } t          j                             d¦  «        rd} | S )aj  
    Finds out OS name.  For non-Linux system it will be just a plain
    OS name (like FreeBSD), for Linux it will be "linux-<distro>",
    where <distro> is the name of the distribution, as returned by
    the first component of platform.linux_distribution.

    Return value will be all-lowercase to avoid confusion about
    proper name capitalisation.

    Úlinuxr   z-%sz/etc/arch-releaser   )	ÚplatformÚsystemÚlowerÚ
startswithr   ÚsplitÚosÚpathÚexists)Úos_nameÚdistro_names     ú9/usr/share/offlineimap3/offlineimap/utils/distro_utils.pyÚget_os_namer   '   s™   € õ ŒoÑÔ×%Ò%Ñ'Ô'€Gà×Ò˜'Ñ"Ô"ð #Ý(Ñ*Ô*¨1Ô-ˆØð 	GØ ¨×(9Ò(9Ñ(;Ô(;¸AÔ(>×(DÒ(DÑ(FÔ(FÑ FÑFˆGÝŒ7�>Š>Ð-Ñ.Ô.ð 	#Ø"ˆGà€Nó    c                  óX   — t          ¦   «         } t                               | d¦  «        }|S )a'  Returns search path for CA bundle for the current OS.

    We will return an iterable even if configuration has just
    a single value: it is easier for our callers to be sure
    that they can iterate over result.

    Returned value of None means that there is no search path
    at all.
    N)r   Ú__DEF_OS_LOCATIONSÚget)r   Úlocations     r   Úget_os_sslcertfile_searchpathr   >   s'   € õ ‰mŒm€GÝ!×%Ò% g¨tÑ4Ô4€Hà€Or   c                  ó$  — t          ¦   «         } | €dS | D ]z}t          |t          ¦  «        sJ ‚t          j                             |¦  «        rBt          j                             |¦  «        st          j                             |¦  «        r|c S Œ{dS )a  
    Finds out the location for the distribution-specific
    CA certificate file bundle.

    Returns the location of the file or None if there is
    no known CA certificate file or all known locations
    correspond to non-existing filesystem objects.
    N)r   Ú
isinstanceÚstrr   r   r   ÚisfileÚislink)r   Úl_files     r   Úget_os_sslcertfiler#   N   s�   € õ -Ñ.Ô.€HØÐØˆtàð ð ˆÝ˜&¥#Ñ&Ô&Ð&Ð&Ð&ÝŒ7�>Š>˜&Ñ!Ô!ð 	¥r¤w§~¢~°fÑ'=Ô'=ð 	Ý')¤w§~¢~°fÑ'=Ô'=ð	àˆMˆMˆMøàˆ4r   )
Ú__doc__r   r   r   ÚImportErrorÚdistror   r   r   r#   © r   r   ú<module>r(      s  ððð ð
 €€€Ø 	€	€	€	ð*Ø+Ð+Ð+Ð+Ð+Ð+Ð+øØð *ð *ð *Ø)Ð)Ð)Ð)Ð)Ð)Ð)Ð)ð*øøøð 9Ð9Ø#Ð$Ø%Ð&ð 	3à)ð	ð :Ð:Ø9Ð:Ø9Ð:Ø7Ð8Ø7Ð8Ø+Ð,Ø/Ð0Ø7Ð8ð#ð Ð ð*ð ð ð.ð ð ð ð ð ð ð s   Œ “! !