ó
È”Mc           @   s›   d  d l  m Z d Z e d ƒ Z e d ƒ Z d e d ƒ e d e d ƒ f d e d	 ƒ e d
 e d ƒ f d e d ƒ e d
 e d ƒ f g Z d „  Z d S(   iÿÿÿÿ(   t   _t   packages   RPM MetaDatas3   
Repository created with the rpm-metadata project.
t   baseurls   Base URLs)   URL where repodata/ subdirectory is foundt
   mirrorlists   Mirror list URLt    s.   URL which provides list of mirrors for baseurlt   fingerprintt   Fingerprints+   GPG fingerprint of key signing the channel.c         C   s,  d d  l  } g  } | j j | j j |  d ƒ ƒ r(| r\ d } | |  t | j ƒ  ƒ 7} n d } | |  7} i t | ƒ d 6} | r| j j | j ƒ  d ƒ } | j j | ƒ rt | ƒ } | j ƒ  j	 ƒ  } | j ƒ  j	 ƒ  }	 | j ƒ  j	 ƒ  }
 | j
 ƒ  d |	 |
 f | d <qn  | j | ƒ n  | S(	   Niÿÿÿÿs   repodata/repomd.xmls   localmedia://s   file://R   s	   .discinfos   %s - %s - Mediat   name(   t   ost   patht   isfilet   joint   lent   getMountPointt   strt   opent   readlinet   rstript   closet   append(   R	   t   mediaR   t   channelsR   t   channelt   infofilet   filet   skipR   t   arch(    (    s>   /usr/lib/python2.7/dist-packages/smart/channels/rpm_md_info.pyt   detectLocalChannels'   s(    !

N(	   t   smartR    t   kindR   t   descriptionR   t   Nonet   fieldsR   (    (    (    s>   /usr/lib/python2.7/dist-packages/smart/channels/rpm_md_info.pyt   <module>   s   	