³ò
OûÆEc           @   sw   d  d k  Z  d  d k Z d  d k Z d  d k l Z e i Z d „  Z e Z e d ƒ e d ƒ d d d „  ƒ  YZ d S(	   iÿÿÿÿN(   t   PIPEc         C   s   |  S(   N(    (   t   e(    (    s?   /var/lib/python-support/python2.5/softwareproperties/AptAuth.pyt   dummy   s    s;   Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>s:   Ubuntu CD Image Automatic Signing Key <cdimage@ubuntu.com>t   AptAuthc           B   s5   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z RS(   c      	   C   s†   d g |  _  |  i  d d d d d d d d	 g |  _ |  i d
 d d g |  _ |  i d d d d g |  _ |  i d d d g |  _ d  S(   Ns   /usr/bin/gpgs   --no-optionss   --no-default-keyrings   --secret-keyrings   /etc/apt/secring.gpgs   --trustdb-names   /etc/apt/trustdb.gpgs	   --keyrings   /etc/apt/trusted.gpgs   --with-colonss   --batchs   --list-keyss   --quiets   --delete-keys   --yess   --import(   t   gpgt   base_optt   list_optt   rm_optt   add_opt(   t   self(    (    s?   /var/lib/python-support/python2.5/softwareproperties/AptAuth.pyt   __init__%   s    c         C   s–   g  } t  i |  i d t ƒi } xn | i ƒ  D]` } | i d ƒ } | d d j o: | d } | i d | d d | d	 t | ƒ f ƒ q. q. W| S(
   Nt   stdoutt   :i    t   pubi	   s   %s %s
%si   iøÿÿÿi   (	   t
   subprocesst   PopenR   R    R   t	   readlinest   splitt   appendt   _(   R	   t   rest   pt   linet   fieldst   name(    (    s?   /var/lib/python-support/python2.5/softwareproperties/AptAuth.pyt   list3   s     
4c         C   s6   |  i  } | i | ƒ t i | ƒ } | i ƒ  d j S(   Ni    (   R   R   R   R   t   wait(   R	   t   filenamet   cmdR   (    (    s?   /var/lib/python-support/python2.5/softwareproperties/AptAuth.pyt   add>   s    
c         C   s+   d d g } t  i | ƒ } | i ƒ  d j S(   Ns   /usr/bin/apt-keyt   updatei    (   R   R   R   (   R	   R   R   (    (    s?   /var/lib/python-support/python2.5/softwareproperties/AptAuth.pyR   E   s    c         C   s6   |  i  } | i | ƒ t i | ƒ } | i ƒ  d j S(   Ni    (   R   R   R   R   R   (   R	   t   keyR   R   (    (    s?   /var/lib/python-support/python2.5/softwareproperties/AptAuth.pyt   rmJ   s    
(   t   __name__t
   __module__R
   R   R   R   R    (    (    (    s?   /var/lib/python-support/python2.5/softwareproperties/AptAuth.pyR   $   s
   				(    (   t   osR   t   gettextR    R   R   t   N_R   (    (    (    s?   /var/lib/python-support/python2.5/softwareproperties/AptAuth.pys   <module>   s   		

