Current Path : /usr/lib/python2.7/dist-packages/twisted/scripts/ |
Current File : //usr/lib/python2.7/dist-packages/twisted/scripts/tap2deb.pyc |
ó ±ZOc @ s§ d d l Z d d l Z d d l Z d d l Z d d l m Z d e j f d „ ƒ YZ i d d 6d d 6d d 6d d 6Z d „ Z d „ Z e d k r£ e ƒ n d S( iÿÿÿÿN( t usaget MyOptionsc B sÊ e Z d d g g Z d d d g d d d d g d d d g d d d g d d d g d d d g d d d g d d d d g g Z e j d i e j d d d d g ƒ d 6e j d ƒ d 6ƒ Z d „ Z RS( t unsignedt ut tapfilet ts twistd.tapt maintainert mt sV The maintainer's name and email in a specific format: 'John Doe <johndoe@example.com>'t protocolt pt descriptiont et long_descriptiont ls set-versiont Vs 1.0t debfilet dt typet yt tapsG type of configuration: 'tap', 'xml, 'source' or 'python' for .tac filest optActionst xmlt sourcet pythons *.debc C s | d s t j d ‚ n d S( NR s maintainer must be specified.( R t UsageError( t self( ( s; /usr/lib/python2.7/dist-packages/twisted/scripts/tap2deb.pyt postOptions s N( t __name__t __module__t optFlagst Nonet optParametersR t Completionst CompleteListt CompleteFilest compDataR ( ( ( s; /usr/lib/python2.7/dist-packages/twisted/scripts/tap2deb.pyR s t fileR R R R c C s* t | d ƒ } | j | ƒ | j ƒ d S( Nt w( t opent writet close( R% t textt f( ( s; /usr/lib/python2.7/dist-packages/twisted/scripts/tap2deb.pyt save_to_file( s c C s y t ƒ } | j ƒ Wn4 t j k rM } t j d t j d | f ƒ n X| d } t j j | d ƒ } | d p‹ t j j | ƒ d } | d pŸ d | } | d } | d } | d pÊ d t ƒ } | d pÚ d } t | d } t j t j d ƒ j ƒ ƒ } | d | } d t j d } t j j t j j d | ƒ ƒ rlt j d t j j d | ƒ ƒ n t j t j j d | d ƒ ƒ t j | t j j d | ƒ ƒ t t j j d | d d ƒ d ƒ t t j j d | d d ƒ d t ƒ ƒ t t j j d | d d ƒ d t ƒ ƒ t t j j d | d d ƒ d t ƒ ƒ t j t j j d | d d ƒ d ƒ t t j j d | d d ƒ d t ƒ ƒ t t j j d | d d ƒ d! t ƒ ƒ t t j j d | d d"