?_\ddlZddlZddlZddlZddlZddlmZddlmZddl m Z m Z m Z ddl mZddlmZmZGdd eZed k(reZej+ej,dsej.ded Zeeej4j7ej8j;Z ed edj?Z ej?jEe r!ej.ejGyyy#e!$rd Z YKwxYw)N)gettext)findall)PIPEPopencall)Cache) DebPackage DscSrcPackagec0eZdZdZdZdZdZdZdZy)GDebiClic||_|jr)tjjj }n(tjj j }|jrtjj|jdzrbt|jdzdgtdjd}|r.tjj!d|j#|j$r|j$D]}|j'ddkr=t(j*j-t/dt)j0d |j3dd \}} tjj!||t5||j |_y#t(j*j-t/d ||fzt)j0d YxYw) Nz /usr/bin/dpkgz--print-architectureTstdoutuniversal_newlinesrzAPT::Architecture=z6Configuration items must be specified with a = r z!Couldn't set APT option %s to %s )rootdir)optionsquietaptprogressbase OpProgresstextrospathexistsrr communicateapt_pkgconfigsetstripapt_optsfindsysstderrwrite_exitsplitr_cache)selfrtparchonamevalues "/usr/share/gdebi/GDebi/GDebiCli.py__init__zGDebiCli.__init__)sx ==""--/B""--/B ??rww~~gooo.MN'///902 $,023>+-CD""#6tzz|D   %% 66#;?JJ$$Q'`%abHHQK !Q u NN&&tU3 B8  JJ$$Q'K%LPTV[}%\]HHQKs  GAHc |jds'dtd|gtdjdvrt ||j |_n|jds"tjj|dk(rt||j |_n@tjjtd |ztjd |j j+s_tjjtdtjj|j j,dzyy#t t"t$f$r}t'j(d |ztjjtd tjjtd tjd Yd}~d}~wwxYw)Nz.debzDebian binary packagefileTrr.dsccontrolz#Unknown package type '%s', exiting r zerror opening: %sz$Failed to open the software package zkThe package might be corrupted or you are not allowed to open the file. Check the permissions of the file. zThis package is uninstallable  F)endswithrrrr r+_debrrbasenamer r%r&r'r(r)IOError SystemError ValueErrorloggingdebugcheck_failure_string)r,r5es r2openz GDebiCli.openEsf  f%'5&$ae+f+r+r+tuv+ww&tT[[9 --'''""4(I5)$ <    #I!JT!QR yy JJ  Q@A B JJ  TYY66= > J/  MM-1 2 JJ  QFG H JJ  Q ,- . HHQKK  sC#EG;3A=G66G;c| t|jdy#t$rttdYywxYw)N DescriptionzNo description is available)printr:KeyErrorr(r,s r2show_descriptionzGDebiCli.show_description^s5 4 $))M* + 4 !12 3 4s ;;c6t|jy)N)rGget_dependencies_inforIs r2show_dependencieszGDebiCli.show_dependenciesds d((*+cTd}|jj\}}}t|dkDr|tdz }|D] }||dzz } t|dkDr"|tdz }|D] }||dzz } |dz }t|dkDr"|tdz }|D] }||dzz } |dz }|S)Nrz,The following packages are UNAUTHENTICATED:  z0Requires the REMOVAL of the following packages: r8z5Requires the installation of the following packages: )r:required_changeslenr()r,sinstallremoveunauthenticatedpkgnames r2rLzGDebiCli.get_dependencies_infogs -1YY-G-G*&/  ! # AB BA* #Ws]" # v;? EF FA! #Ws]" # IA wrxs 0  ((1lPvlP^ z *C 88CHHQK  B CC #KJJ ))   C ' -a 0 6 6 8 yy{a !  sD!!D+*D+