§
    ôc8  ã                   óP  — d dl mZmZ d dlmZ  edd¦  «        Z edd¦  «        Zedfd„Z ed	 ed
¦  «         ede	d¬¦  «         edd¬¦  «         ed¦  «        f¦  «         ed edd¬¦  «         edd¬¦  «         edd¬¦  «        f¦  «         ed edd¬¦  «         ede
d¬¦  «         ede
d¬¦  «         ede
d¬¦  «         ede
d¬¦  «         ede
d¬¦  «         edd¬¦  «        f¦  «         ed edd¬¦  «         edd¬¦  «        f¦  «        fZd „ Zd!„ Zd"„ Zd#S )$é    )ÚOrderedDictÚ
namedtuple)ÚRawConfigParserÚSection_format)ÚnameÚoptionsÚConfig_option©r   Ú
value_typeÚrequiredTc                 ó$   — t          | ||¦  «        S )zœ
    Given a config file option name, an expected type for its value, and whether it's required,
    return a Config_option capturing that information.
    )r	   r
   s      ú9/usr/lib/python3/dist-packages/borgmatic/config/legacy.pyÚoptionr      s   € õ
 ˜˜z¨8Ñ4Ô4Ð4ó    ÚlocationÚsource_directoriesÚone_file_systemF)r   r   Úremote_path©r   Ú
repositoryÚstorageÚencryption_passphraseÚcompressionÚumaskÚ	retentionÚkeep_withinÚkeep_hourlyÚ
keep_dailyÚkeep_weeklyÚkeep_monthlyÚkeep_yearlyÚprefixÚconsistencyÚchecksÚ
check_lastc                 óª  ‡
— t          |                      ¦   «         ¦  «        }t          d„ |D ¦   «         ¦  «        }|t          d„ |D ¦   «         ¦  «        z
  }|r5t          d                     d                     |¦  «        ¦  «        ¦  «        ‚t          |¦  «        |z
  }|r5t          d                     d                     |¦  «        ¦  «        ¦  «        ‚|D ]ø}|j        |vrŒ|                      |j        ¦  «        Š
|j        }t          ‰
¦  «        t          d„ |D ¦   «         ¦  «        z
  }|rHt          d                     |j        d                     t          |¦  «        ¦  «        ¦  «        ¦  «        ‚t          ˆ
fd„|D ¦   «         ¦  «        }	|	r;t          d	                     |j        d                     |	¦  «        ¦  «        ¦  «        ‚Œùd
S )au  
    Given an open RawConfigParser and an expected config file format, validate that the parsed
    configuration file has the expected sections, that any required options are present in those
    sections, and that there aren't any unexpected options.

    A section is required if any of its contained options are required.

    Raise ValueError if anything is awry.
    c              3   ó`   K  — | ])}t          d „ |j        D ¦   «         ¦  «        ¯ |j        V — Œ*dS )c              3   ó$   K  — | ]}|j         V — Œd S ©Nr   ©Ú.0r   s     r   ú	<genexpr>z:validate_configuration_format.<locals>.<genexpr>.<genexpr>B   s$   è è € Ð=Ð= 6ˆvŒÐ=Ð=Ð=Ð=Ð=Ð=r   N)Úanyr   r   )r+   Úsections     r   r,   z0validate_configuration_format.<locals>.<genexpr>?   sW   è è € ð #ð #àÝÐ=Ð=¨W¬_Ð=Ñ=Ô=Ñ=Ô=ð#ØŒð#ð #ð #ð #ð #ð #r   c              3   ó$   K  — | ]}|j         V — Œd S r)   ©r   ©r+   Úsection_formats     r   r,   z0validate_configuration_format.<locals>.<genexpr>E   s6   è è € ð 0ð 0Ø .ˆÔð0ð 0ð 0ð 0ð 0ð 0r   z!Unknown config sections found: {}z, zMissing config sections: {}c              3   ó$   K  — | ]}|j         V — Œd S r)   r0   r*   s     r   r,   z0validate_configuration_format.<locals>.<genexpr>X   s5   è è € ð :
ð :
Ø"ˆFŒKð:
ð :
ð :
ð :
ð :
ð :
r   z1Unexpected options found in config section {}: {}c              3   óF   •K  — | ]}|j         r|j        ‰v¯|j        V — Œd S r)   )r   r   )r+   r   Úoption_namess     €r   r,   z0validate_configuration_format.<locals>.<genexpr>c   sL   øè è € ð %
ð %
àØŒð%
ð Œ{ ,Ð.Ð.ð ŒKð /Ð.Ð.Ð.ð	%
ð %
r   z3Required options missing from config section {}: {}N)	ÚsetÚsectionsÚtupleÚ
ValueErrorÚformatÚjoinr   r   Úsorted)ÚparserÚconfig_formatÚsection_namesÚrequired_section_namesÚunknown_section_namesÚmissing_section_namesr2   Úexpected_optionsÚunexpected_option_namesÚmissing_option_namesr5   s             @r   Úvalidate_configuration_formatrF   4   sO  ø€ õ ˜ŸšÑ)Ô)Ñ*Ô*€MÝ"ð #ð #à$ð#ñ #ô #ñ ô Ðð *­Cð 0ð 0Ø2?ð0ñ 0ô 0ñ -ô -ñ Ðð ð 
ÝØ/×6Ò6°t·y²yÐAVÑ7WÔ7WÑXÔXñ
ô 
ð 	
õ  Ð 6Ñ7Ô7¸-ÑGÐØð aÝÐ6×=Ò=¸d¿iºiÐH]Ñ>^Ô>^Ñ_Ô_Ñ`Ô`Ð`à'ð ð ˆØÔ mÐ3Ð3Øà—~’~ nÔ&9Ñ:Ô:ˆØ)Ô1Ðå"% lÑ"3Ô"3µcð :
ð :
Ø&6ð:
ñ :
ô :
ñ 7
ô 7
ñ #
Ðð #ð 	ÝØC×JÒJØ"Ô'¨¯ªµ6Ð:QÑ3RÔ3RÑ)SÔ)Sñô ñô ð õ  %ð %
ð %
ð %
ð %
à*ð%
ñ %
ô %
ñ  
ô  
Ðð  ð 	ÝØE×LÒLØ"Ô'¨¯ªÐ3GÑ)HÔ)Hñô ñô ð ð	ð3ð r   c                 ó˜   ‡ ‡‡— t           ‰ j        t          ‰ j        t          ‰ j        iŠt          ˆ ˆˆfd„‰j        D ¦   «         ¦  «        S )aE  
    Given an open RawConfigParser and an expected section format, return the option values from that
    section as a dict mapping from option name to value. Omit those options that are not present in
    the parsed options.

    Raise ValueError if any option values cannot be coerced to the expected Python data type.
    c              3   ó¨   •K  — | ]L}‰                      ‰j        |j        ¦  «        ¯"|j         ‰|j                 ‰j        |j        ¦  «        fV — ŒMd S r)   )Ú
has_optionr   r   )r+   r   r=   r2   Útype_getters     €€€r   r,   z(parse_section_options.<locals>.<genexpr>|   ss   øè è € ð ð àØ×Ò˜^Ô0°&´+Ñ>Ô>ðØ	ŒÐ4�k &Ô"3Ô4°^Ô5HÈ&Ì+ÑVÔVÐWðð ð ð ð ð r   )ÚstrÚgetÚintÚgetintÚboolÚ
getbooleanr   r   )r=   r2   rJ   s   ``@r   Úparse_section_optionsrQ   r   se   øøø€ õ ˜œ
¥C¨¬½¸fÔ>OÐP€Kåð ð ð ð ð ð à$Ô,ðñ ô ñ ô ð r   c                 ó  ‡— t          ¦   «         Š‰                     | ¦  «        s"t          d                     | ¦  «        ¦  «        ‚t	          ‰|¦  «         t          dd„ |D ¦   «         ¦  «        } |ˆfd„|D ¦   «         Ž S )a  
    Given a config filename and an expected config file format, return the parsed configuration
    as a namedtuple with one attribute for each parsed section.

    Raise IOError if the file cannot be read, or ValueError if the format is not as expected.
    z'Configuration file cannot be opened: {}ÚParsed_configc              3   ó$   K  — | ]}|j         V — Œd S r)   r0   r1   s     r   r,   z&parse_configuration.<locals>.<genexpr>“   s%   è è € ÐRÐR°.˜.Ô-ÐRÐRÐRÐRÐRÐRr   c              3   ó8   •K  — | ]}t          ‰|¦  «        V — Œd S r)   )rQ   )r+   r2   r=   s     €r   r,   z&parse_configuration.<locals>.<genexpr>—   s.   øè è € Ð	\Ð	\¸NÕ
 ¨Ñ
7Ô
7Ð	\Ð	\Ð	\Ð	\Ð	\Ð	\r   )r   Úreadr9   r:   rF   r   )Úconfig_filenamer>   rS   r=   s      @r   Úparse_configurationrX   ƒ   sŸ   ø€ õ ÑÔ€FØ�;Š;�Ñ'Ô'ð \ÝÐB×IÒIÈ/ÑZÔZÑ[Ô[Ð[å! &¨-Ñ8Ô8Ð8õ ØÐRÐRÀMÐRÑRÔRñô €Mð ˆ=Ø	\Ð	\Ð	\Ð	\ÈmÐ	\Ñ	\Ô	\ðð r   N)Úcollectionsr   r   Úconfigparserr   r   r	   rK   r   rO   rM   ÚCONFIG_FORMATrF   rQ   rX   © r   r   ú<module>r]      s5  ðØ /Ð /Ð /Ð /Ð /Ð /Ð /Ð /Ø (Ð (Ð (Ð (Ð (Ð (à�Ð,Ð.AÑBÔB€Ø�
˜?Ð,NÑOÔO€ð  ¨$ð 5ð 5ð 5ð 5ð €NØàˆFÐ'Ñ(Ô(ØˆFÐ$°ÀÐFÑFÔFØˆF�=¨5Ð1Ñ1Ô1ØˆF�<Ñ Ô ð		
ñô ð €NØàˆFÐ*°UÐ;Ñ;Ô;ØˆF�=¨5Ð1Ñ1Ô1ØˆF�7 UÐ+Ñ+Ô+ð	
ñô ð €NØàˆF�=¨5Ð1Ñ1Ô1ØˆF�= #°Ð6Ñ6Ô6ØˆF�< ¨uÐ5Ñ5Ô5ØˆF�= #°Ð6Ñ6Ô6ØˆF�> 3°Ð7Ñ7Ô7ØˆF�= #°Ð6Ñ6Ô6ØˆF�8 eÐ,Ñ,Ô,ð	
ñô ð €NØ˜˜˜x°%Ð8Ñ8Ô8¸&¸&ÀÐX]Ð:^Ñ:^Ô:^Ð_ñô ð=!€ðH;ð ;ð ;ð|ð ð ð"ð ð ð ð r   