File: //lib/python2.7/dist-packages/aptsources/sourceslist.pyc
�
&��cc @@ s� d d l m Z m Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l
Z
d d l m Z d d d d d g Z
d
� Z d � Z d e f d � � YZ d e f d
� � YZ d e f d � � YZ d e f d � � YZ e d k r�e
j � e � Z x% e D] Z e j d e j � � qWe d d � Z e j d e � e j e d d � � e j e d d � � n d S( i ( t absolute_importt print_functionNi ( t DistInfot is_mirrort SourceEntryt NullMatchert SourcesListt SourceEntryMatcherc C@ s� | j d � } | j d � } | | k r. t Sy* | j d � d } | j d � d } Wn t k
rl t SXd | k r� | | j d � d | k r� t St S( s� check if the given add_url is idential or a mirror of orig_uri e.g.:
master_uri = archive.ubuntu.com
compare_uri = de.archive.ubuntu.com
-> True
s / s //i t .( t rstript Truet splitt
IndexErrort Falset index( t
master_urit compare_urit compare_srvt
master_srv( ( s: /usr/lib/python2.7/dist-packages/aptsources/sourceslist.pyR . s
c C@ s t t | � � S( s. simple and efficient way to return uniq collection
This is not intended for use with a SourceList. It is provided
for internal use only. It does not have a leading underscore to
not break any old code that uses it; but it should not be used
in new code (and is not listed in __all__).( t listt set( t s( ( s: /usr/lib/python2.7/dist-packages/aptsources/sourceslist.pyt uniqL s c B@ sP e Z d Z d d � Z d � Z d � Z d � Z d � Z d � Z d � Z
RS( s single sources.list entry c C@ s� t | _ t | _ d | _ g | _ d | _ d | _ d | _ g | _ d | _
| | _ | d k r� t j
j d � t j
j d � } n | | _ | j | � d | _ g | _ d S( Nt s Dir::Etcs Dir::Etc::sourcelist( R
t invalidt disabledt typet
architecturest Nonet trustedt urit distt compst commentt linet apt_pkgt configt find_dirt findt filet parset templatet children( t selfR"