Ñò
ýÉªWc           @   s¶  d  d k  Z  d  d k Z d  d k Z d  d k Z d  d k Z d  d k Z d  d k Z d  d k Z d  d k Z d  d k	 l	 Z	 d  d k
 l Z l Z d  d k Z d  d k Z d  d k Z d  d k l Z yÌ e  i i d ƒ Z e d j o d GHd GHe i d	 ƒ n e d
 ƒ Z e i e ƒ Z e i ƒ  d e d GHe d Gd GHd Z x  e d D] Z e d e Z qSWd e Z d GHe GHe  i e ƒ d GHWn e j
 o d GHd GHn Xd S(   iÿÿÿÿN(   t   pprint(   t   OptionParsert   OptionGroup(   t	   urlencodet   LOGNAMEt   roots   You must run this as user root.s
   Exiting...i   s	   msmw.jsons	   undeploy t   namet   versions   
s!   /bin/rpm -e --nodeps --allmatchest   rpmst    s   command=s   RPM uninstalling.s   undeploy complete.t    s   <CTRL>-C detected...Exiting...(   t   ost   syst   sockett   ret   dircachet   shutilt   errnot
   subprocesst   jsonR    t   optparseR   R   t   base64t   urllibt   httplib2R   t   environt   gett	   userlogint   exitt   opent	   json_datat   loadt   configt   closet
   RPMCMDLINEt   filet	   outputstrt   systemt   KeyboardInterrupt(    (    (    sb   /home/jenkins/workspace/prepack-aio-release-4.2/prepack-aio/src/main/resources/scripts/undeploy.pyt   <module>   sJ   	
 
	