mò
Î©ìPc           @   sÒ  d  k  Z  d  k Z d  k Z d  k Z d  k Z d „  Z h  d d  <d d  <d d  <d d  <d d  <d d  <d d  <d	 d  <Z d  Z g  Z	 x( e i
 ƒ  D] Z e	 i d
 e f ƒ q We	 i d ƒ e i e i d d e	 ƒ \ Z Z e e ƒ d j o d e GHe ƒ  n xd e D]\ \ Z Z e d e i
 ƒ  j o e e e d <qe d j o
 d Z qd Ge GHe ƒ  qWe d d  j o! e i d IJe i ƒ  e d <n e e d ƒ e d <e d d  j o  d GHe i i ƒ  d  e d <n e d d  j o  d GHe i i ƒ  d  e d <n e d d  j o( e d  j o e i d IJd e d <n e d d  j o  d GHe i i ƒ  d  e d <n e d d  j o  d GHe i i ƒ  d  e d <n e d d  j o  d GHe i i ƒ  d  e d <n e d	 d  j o e i Z n e e d	 d ƒ Z e i d e d ƒ e i d e d ƒ e i d e d ƒ e d  j o e i d e d ƒ n e i d ƒ e i d e d ƒ e i d e d ƒ e i d e d ƒ d  S(    Nc          C   sQ   d }  x! t D] } d |  | | f }  q Wd t i d |  f GHt i d ƒ d  S(   Nt    s   %s [--%s=%s]s   %s: %si    i   (   t   argst   datat   keyt   syst   argvt   exit(   R   R   (    (    t&   /usr/lib/anaconda-runtime/makestamp.pyt   usage   s     t	   timestampt
   releasestrt   archt   discNumt   baseDirt   packagesDirt
   pixmapsDirt   outfiles   %s=t   allDiscsi   R    i    s   had extra args: %si   s
   --allDiscss   unknown str of s/   timestamp not specified; using the current times:   What should be the release name associated with this disc?iÿÿÿÿs   What arch is this disc for?s)   No disc number specified; assuming disc 1t   1s    Where is the comps file located?s   Where are the packages located?s   Where are the images located?t   ws   %f
s   %s
s   0
(   t   osR   t   stringt   getoptt   timeR   t   NoneR   R   t   optst   keysR   t   appendR   R   t   extrat   lent   strt   argt   stderrt   floatt   stdint   readlinet   stdoutt   ft   opent   write(   R   R%   R   R   R   R   R   R   R   R   R   R   R   R   R   (    (    R   t   ?
   sp   			N "	 
	