ÿØÿà JFIF    ÿÛ „  ( %"1!%)+...383,7(-.+  -+++--++++---+-+-----+---------------+---+-++7-----ÿÀ  ß â" ÿÄ     ÿÄ H    !1AQaq"‘¡2B±ÁÑð#R“Ò Tbr‚²á3csƒ’ÂñDS¢³$CÿÄ   ÿÄ %  !1AQa"23‘ÿÚ   ? ôÿ ¨pŸªáÿ —åYõõ\?àÒü©ŠÄï¨pŸªáÿ —åYõõ\?àÓü©ŠÄá 0Ÿªáÿ Ÿå[úƒ ú®ði~TÁbqÐ8OÕpÿ ƒOò¤Oè`–RÂáœá™êi€ßÉ< FtŸI“öÌ8úDf´°å}“¾œ6  öFá°y¥jñÇh†ˆ¢ã/ÃÐ:ªcÈ "Y¡ðÑl>ÿ ”ÏËte:qž\oäŠe÷󲍷˜HT4&ÿ ÓÐü6ö®¿øþßèô Ÿ•7Ñi’•j|“ñì>b…þS?*Óôÿ ÓÐü*h¥£ír¶ü UãS炟[AÐaè[ûª•õ&õj?†Éö+EzP—WeÒírJFt ‘BŒ†Ï‡%#tE Øz ¥OÛ«!1›üä±Í™%ºÍãö]°î(–:@<‹ŒÊö×òÆt¦ãº+‡¦%ÌÁ²h´OƒJŒtMÜ>ÀÜÊw3Y´•牋4ǍýʏTì>œú=Íwhyë,¾Ôò×õ¿ßÊa»«þˆѪQ|%6ž™A õ%:øj<>É—ÿ Å_ˆCbõ¥š±ý¯Ýƒï…¶|RëócÍf溪“t.СøTÿ *Ä¿-{†çàczůŽ_–^XþŒ±miB[X±d 1,é”zEù»& î9gœf™9Ð'.;—™i}!ôšåîqêÛ٤ёý£½ÆA–àôe"A$˝Úsäÿ ÷Û #°xŸëí(l »ý3—¥5m! rt`†0~'j2(]S¦¦kv,ÚÇ l¦øJA£Šƒ J3E8ÙiŽ:cÉžúeZ°€¯\®kÖ(79«Ž:¯X”¾³Š&¡* ….‰Ž(ÜíŸ2¥ª‡×Hi²TF¤ò[¨íÈRëÉ䢍mgÑ.Ÿ<öäS0í„ǹÁU´f#Vß;Õ–…P@3ío<ä-±»Ž.L|kªÀê›fÂ6@»eu‚|ÓaÞÆŸ…¨ááå>åŠ?cKü6ùTÍÆ”†sĤÚ;H2RÚ†õ\Ö·Ÿn'¾ ñ#ºI¤Å´%çÁ­‚â7›‹qT3Iï¨ÖÚ5I7Ë!ÅOóŸ¶øÝñØôת¦$Tcö‘[«Ö³šÒ';Aþ ¸èíg A2Z"i¸vdÄ÷.iõ®§)¿]¤À†–‡É&ä{V¶iŽ”.Ó×Õÿ û?h¬Mt–íª[ÿ Ñÿ ÌV(í}=ibÔ¡›¥¢±b Lô¥‡piη_Z<‡z§èŒ)iÖwiÇ 2hÙ3·=’d÷8éŽ1¦¸c¤µ€7›7Ø ð\á)} ¹fËí›pAÃL%âc2 í§æQz¿;T8sæ°qø)QFMð‰XŒÂ±N¢aF¨…8¯!U  Z©RÊ ÖPVÄÀÍin™Ì-GˆªÅËŠ›•zË}º±ŽÍFò¹}Uw×#ä5B¤{î}Ð<ÙD é©¤&‡ïDbàÁôMÁ." ¤‡ú*õ'VŽ|¼´Úgllº¼klz[Æüï÷Aób‡Eÿ dÑ»Xx9ÃÜ£ÁT/`¼¸vI±Ýµ·Ë‚“G³þ*Ÿû´r|*}<¨îºœ @¦mÄ’M¹”.œ«Y–|6ÏU¤jç¥ÕÞqO ˜kDÆÁ¨5ÿ š;ÐЦ¦€GÙk \ –Þ=â¼=SͧµªS°ÚÍpÜãQűÀõ¬?ÃÁ1Ñ•õZà?hóœ€ L¦l{Y*K˜Ù›zc˜–ˆâ ø+¾ ­-Ök¥%ùEÜA'}ˆ><ÊIè“bpÍ/qÞâvoX€w,\úªò6Z[XdÒæ­@Ö—€$òJí#é>'°Ú ôª˜<)4ryÙ£|óAÅn5žêŸyÒäMÝ2{"}‰–¤l÷ûWX\l¾Á¸góÉOÔ /óñB¤f¸çñ[.P˜ZsÊË*ßT܈§QN¢’¡¨§V¼(Üù*eÕ“”5T¨‹Âê¥FŒã½Dü[8'Ò¥a…Ú¶k7a *•›¼'Ò·\8¨ª\@\õ¢¦íq+DÙrmÎ…_ªæ»ŠÓœ¡¯’Ré9MÅ×D™lælffc+ŒÑ,ý™ÿ ¯þǤ=Å’Á7µ÷ÚÛ/“Ü€ñýã¼àí¾ÕÑ+ƒ,uµMâÀÄbm:ÒÎPæ{˜Gz[ƒ¯«® KHà`ߨŠéí¯P8Aq.C‰ à€kòpj´kN¶qô€…Õ,ÜNŠª-­{Zö’æû44‰sŽè‰îVíRœÕm" 6?³D9¡ÇTíÅꋇ`4«¸ÝÁô ï’ýorqКÇZ«x4Žâéþuïf¹µö[P ,Q£éaX±`PÉÍZ ¸äYúg üAx ’6Lê‚xÝÓ*äQ  Ï’¨hÍ =²,6ï#rÃ<¯–£»ƒ‹,–ê•€ aÛsñ'%Æ"®ÛüìBᝠHÚ3ß°©$“XnœÖ’î2ËTeûìxîß ¦å¿çÉ ðK§þ{‘t‚Ϋ¬jéîZ[ ”š7L¥4VÚCE×]m¤Øy”ä4-dz£œ§¸x.*ãÊÊ b÷•h:©‡¦s`BTÁRû¾g⻩‹jø sF¢àJøFl‘È•Xᓁà~*j¯ +(ÚÕ6-£¯÷GŠØy‚<Ç’.F‹Hœw(+)ÜÜâÈzÄäT§FߘãÏ;DmVœ3Àu@mÚüXÝü•3B¨òÌÁÛ<·ÃÜ z,Ì@õÅ·d2]ü8s÷IôÞ¯^Ç9¢u„~ëAŸï4«M? K]­ÅàPl@s_ p:°¬ZR”´›JC[CS.h‹ƒïËœ«Æ]–÷ó‚wR×k7X‰k›‘´ù¦=¡«‰¨¨Â')—71ó’c‡Ðúµ `é.{§p¹ój\Ž{1h{o±Ý=áUÊïGÖŒõ–-BÄm+AZX¶¡ ïHðæ¥JmÙ;…䡟ˆ¦ ° äšiÉg«$üMk5¤L“’çÊvïâï ,=f“"íἊ5ô¬x6{ɏžID0e¸vçmi'︧ºð9$ò¹÷*£’9ÿ ²TÔ…×>JV¥}Œ}$p[bÔ®*[jzS*8 ”·T›Í–ñUîƒwo$áè=LT™ç—~ô·¤ÈÚ$榍q‰„+´kFm)ž‹©i–ËqÞŠ‰à¶ü( ‚•§ •°ò·‡#5ª•µÊ﯅¡X¨šÁ*F#TXJÊ ušJVÍ&=iÄs1‚3•'fý§5Ñ<=[íÞ­ PÚ;ѱÌ_~Ä££8rÞ ²w;’hDT°>ÈG¬8Á²ÚzŽ®ò®qZcqJêäÞ-ö[ܘbň±çb“ж31²n×iƒðÕ;1¶þÉ ªX‰,ßqÏ$>•î íZ¥Z 1{ç൵+ƒÕµ¥°T$§K]á»Ûï*·¤tMI’ÂZbŽÕiÒ˜}bÓ0£ª5›¨ [5Ž^ÝœWøÂÝh° ¢OWun£¤5 a2Z.G2³YL]jåtì”ä ÁÓ‘%"©<Ôúʰsº UZvä‡ÄiÆÒM .÷V·™ø#kèýiíÌ–ª)µT[)BˆõÑ xB¾B€ÖT¨.¥~ð@VĶr#¸ü*åZNDŽH;âi ],©£öØpù(šºãö¼T.uCê•4@ÿ GÕÛ)Cx›®0ø#:ÏðFÒbR\(€€Ä®fã4Þ‰Fä¯HXƒÅ,†öEÑÔÜ]Öv²?tLÃvBY£ú6Êu5ÅAQ³1‘’¬x–HŒÐ‡ ^ ¸KwJôÖŽ5×CÚ¨vÜ«/B0$×k°=ðbÇ(Ï)w±A†Á† 11Í=èQšµ626ŒÜ/`G«µ<}—-Ö7KEHÈÉðóȤmݱû±·ø«Snmá=“䫚mݱŸ¡¶~ó·“äUóJæúòB|E LêŽy´jDÔ$G¢þÐñ7óR8ýÒ…Ç› WVe#·Ÿ p·Fx~•ݤF÷0Èÿ K¯æS<6’¡WШ; ´ÿ ¥Êø\Òuî†åÝ–VNœkÒ7oòX¨Á­Ø÷FÎÑä±g÷ÿ M~Çî=p,X´ ÝÌÚÅ‹’ÃjÖ.ØöÏñ qïQ¤ÓZE†° =6·]܈ s¸>v•Ž^Ý\wq9r‰Î\¸¡kURÒ$­*‹Nq?Þª*!sŠÆ:TU_u±T+øX¡ ®¹¡,ÄâÃBTsÜ$Ø›4m椴zÜK]’’›Pƒ @€#â˜`é¹=I‡fiV•Ôî“nRm+µFPOhÍ0B£ €+¬5c v•:P'ÒyÎ ‰V~‚Ó†ÖuókDoh$å\*ö%Ю=£«…aȼ½÷Û.-½VŒŠ¼'lyî±1¬3ó#ÞE¿ÔS¤gV£m›=§\û"—WU¤ÚǼÿ ÂnÁGŒÃ ‚õN D³õNÚíŒÕ;HôyÄÈ©P¹Ä{:?R‘Ô¨âF÷ø£bÅó® JS|‚R÷ivýáâ€Æé¡è³´IئÑT!§˜•ت‚¬â@q€wnïCWÄ@JU€ê¯m6]Ï:£âx'+ÒðXvÓ¦Úm=–´7œ $ì“B£~p%ÕŸUþ« N@¼üï~w˜ñø5®—'Ôe»¤5ã//€ž~‰Tþ›Å7•#¤× Íö pÄ$ùeåì*«ÓŠEØWEÈsßg ¦ûvžSsLpºÊW–âµEWöˬH; ™!CYõZ ÃÄf æ#1W. \uWâ\,\Çf j’<qTbên›Î[vxx£ë 'ö¨1›˜ÀM¼Pÿ H)ƒêêŒA7s,|F“ 꺸k³9Ìö*ç®;Ö!Ö$Eiž•¹ÒÚ†ýóéÝû¾ÕS®ó$’NÝäŸz¤5r¦ãÄÃD÷Üø!°ø‡Ô&@m™Ì^Ãä­d q5Lnÿ N;.6½·N|#ä"1Nƒx“ã<3('&ñßt  ~ªu”1Tb㫨9ê–›–bìd$ߣ=#ÕãÒmU¯eí$EFù5ýYô櫨æì™Ç—±ssM]·á¿0ÕåJRÓªîiƒ+O58ÖñªŠÒx" \µâá¨i’¤i —Ö ” M+M¤ë9‚‰A¦°Qõ¾ßøK~¼Ã‘g…Ö´~÷Ï[3GUœÒ½#…kàÔ®Ò”‰³·dWV‰IP‰Ú8u¹”E ÖqLj¾êÕCBš{A^Âß;–¨`¯¬ìö ˼ ×tìø.tƐm*n¨y4o&Àx¥n¦×î‡aupáÛj8¿m›è¶ã!o½;ß0y^ý×^EÑ¿ÒjzŒ­)vÚÑnÄL …^ªô× ‡—‚3k Îý­hï]içå–îÏ*÷ñþ»Ô CÒjøjÍznˆ´ ¹#b'Fô‹ ‰v¥'’à'T´ƒHýÍ%M‰ ƒ&ÆÇŒï1 ‘ –Þ ‰i¬s žR-Ÿ kЬá¬7:þ 0ŒÅÒÕ/aÙ¬ÃÝ#Úøœ ©aiVc‰. ¹¦ãµ” ›Yg¦›ÆÎýº°f³7ƒhá·¸­}&D9¡ÂsÉÙÞèŠõØàC™¨ñbFC|´Ü(ŸƒÚÒ-%»'a Ì¿)ËÇn¿úÿ ÞŽX…4ÊÅH^ôΑí@ù¹Eh¶“L8Çjù ¼ÎåVªóR©Ï5uà V4lZß®=€xÖŸ–ÑÈ ÷”¨°¾__yM1tÉ?uÆþIkÄgæ@þ[¢†°XÃJ£j·:nkÅ¢u ‘}âGzö­/IµèЬ¼48q¦F°ŽR¼=ûì{´¯RýicS ÕÛ íNtÍÙï£,w4rêì®»~x(©Uñ§#Ñ&œÕ¤>ÎåÍÓ9’Ö{9eV­[Öjâ²ãu]˜å2›qÑšÕJç0€sÄ|Êëè0튔bÁ>“{×_F`Ø©ºê:µä,v¤ðfc1±"«ÔÍän1#=· Âøv~H½ÐßA¾¿Ü€Óš]Õ; I¾÷ç‚Qi†î¹9ywÔKG˜áñ zQY—§ÃÕZ07§X‚ Áh;ÁM)iÌCH-¯T‘ë|A0{Ò½LÚ–TâÖkÜ’dÀ“rmm»”جPF³ÖcbE§T€ÒxKºû’Ó®7±²(\4ŽÃ¸Uu@j™yĵ;³µ!Á¢b.W¤=mõ´êµK k ¸K^ÜÛ#p*Ü14qkZç5ïë †°5Ï%ÍÛ<Õ¤×Ô¥ê†C Õ´¼ú$ƒÖ“”]Ù¬qÞÚ[4©ý!ûÏ—Áb쳐XµA¬â~`›Çr¸8ìùÝ䫦<>ä÷«?xs´ÇÑ /á;¹øüÊÈÙà{"@Žïzâ¬[âß‚ U_<ÇŸ½4èN˜ú61®qŠu ¦þF£»äJ_ˆÙÎ~ ÞAã–݄ϗrŠD;xTž‘ô`É«…suãO`?³à™ô Lý#Íc5öoæØ‚y´´÷«ZR§<&JÇ+éâô´€i!Àˆ0æAoàðLèÖ-2ŸõW.’t^–(KÁmHµV@xÜÇy®Ñø­â^:Ú3w· 7½¹°ñ¸â¹®:',«Mœ—n­Á+Ãbš LÈ‘ÄnRÓÅœ%¦²‰¨ùQ:¤f‚ "PÕtô¸…cæl…&˜Ú˜Ôkv‹ž+vŠ,=¢v­6—Xy*¥t£«<™:“aîϲ=¦6rO]XI¿Œ÷¤zÚ­›¶ 6÷”w\d ü~v®ˆÌk«^m<ÿ ¢‰Õ\)ùºŽ;… lîÙÅEŠ®cѾ@vnMÏ,¼“ñ•ŽBxðÃzãÇç%3ˆ"}Ù•Åî> BÉú;Ò]V+P˜F_´ßé> Øše|ï‡ÄOmFæÇ ãqÞ$/xÐx­z`ï9"œÜij‚!7.\Td…9M‡•iŽ‹¾‘50ÞŽn¥ß4ÉôO ¹*í^QêËÜÇÌ8=ާs‰'ÂëÙ«á%Pú[O †ÅP¯Vsް.‰,kc¶ ¬A9n˜XÎ-ÞšN["¹QÕ‰ƒMýÁߺXJæÍaLj¾×Ãmã¾ãÚ uñÒþåQô¦¥ /ÄUx:‚ÍÜ’ Đ©ØÝ3V¨‰ÕnÐ6ó*óúK­«…c ¯U òhsý­jóÔj#,ímŒRµ«lbïUTŒÑ8†Ä0œÏr`ð¡¬É Ї ë"À² ™ 6¥ f¶ ¢ÚoܱԷ-<Àî)†a¶ž'Ú»¨TXqØæ¶÷YÄHy˜9ÈIW­YÀuMFë ºÏ’AqÌ4·/Ú †ô'i$øä­=Ä Ý|öK×40è|È6p‘0§)o¥ctî§H+CA-“ xØ|ÐXАç l8íºð3Ø:³¤¬KX¯UÿÙ U ˎ^@stdZddlmZddlZddlZddlZddlZddlZddlZddl Z e z(ddl m Z ddl m Z ddlmZWn0ek rddlm Z ddlm Z mZYnXzdddlmZmZmZmZmZmZmZmZmZmZmZmZeeeeeeeeeeWnVek r`ddl Z Gd d d e!Z"e"e#Ze"e jZe"e jZdZd d ZYnXddl$Z$ddl%Z&dd l'm(Z(m)Z)e(e)ddl$m*Z+dZ,ej-j.dkre/Z0ddZ1Gddde2Z3Gddde3Z4Gddde!Z5Gdddee5Z6Gddde!Z7GdddeeefZ8Gdd d e!Z9Gd!d"d"ee9Z:Gd#d$d$e!Z;ed%d&Z=,>>,) instead of the curently used ones (<,<=,=,!=,>=,>,). This compare helper lets < match to <<, > match to >> and = match to ==. cCs`t||rdSt|dr(td|St|dr@td|St|drXtd|SdSdS) NTz>>=z==F)str__eq__rotherrrrr=~s       zBaseDependency.__dstr.__eq__cCs || Sr)r=r>rrr__ne__szBaseDependency.__dstr.__ne__N)rrrr r=r@rrrr__dstrus rAcCs||_||_dSr)_version_dep)rversiondeprrrrszBaseDependency.__init__cCsd|j|jfSNz%s: %srawtyperawstrrrrr__str__szBaseDependency.__str__cCsd|j|j|j|jfS)Nz;)namerelationrDrHrJrrr__repr__szBaseDependency.__repr__cCs |jjjS)zThe name of the target package.)rCZ target_pkgrLrJrrrrLszBaseDependency.namecCs||jjS)zThe relation (<, <=, =, !=, >=, >, '') in mathematical notation. The empty string will be returned in case of an unversioned dependency. )_BaseDependency__dstrrCZ comp_typerJrrrrMszBaseDependency.relationcCs|jjS)avThe relation (<<, <=, =, !=, >=, >>, '') in Debian notation. The empty string will be returned in case of an unversioned dependency. For more details see the Debian Policy Manual on the syntax of relationship fields: https://www.debian.org/doc/debian-policy/ch-relationships.html#s-depsyntax # noqa .. versionadded:: 1.0.0 )rCZ comp_type_debrJrrr relation_debs zBaseDependency.relation_debcCs|jjS)zThe target version or an empty string. Note that the version is only an empty string in case of an unversioned dependency. In this case the relation is also an empty string. )rCZ target_verrJrrrrDszBaseDependency.versioncCsJg}|j}|D]2}|j}|jjj}||}t||}||q|S)zfA list of all Version objects which satisfy this dependency. .. versionadded:: 1.0.0 ) rCZ all_targetsZ parent_pkgrBpackage_pcacheZ_rawpkg_to_pkgr*append)rtversZ_tversZ_tver_pkgcachepkgtverrrrtarget_versionss     zBaseDependency.target_versionscCsdd|jDS)iA list of all installed Version objects which satisfy this dep. .. versionadded:: 1.0.0 cSsg|]}|jr|qSr is_installed.0rXrrr sz.rYrJrrrinstalled_target_versionssz(BaseDependency.installed_target_versionscCs$|jrd|j|j|jfS|jSdS)aString represenation of the dependency. Returns the string representation of the dependency as it would be written in the debian/control file. The string representation does not include the type of the dependency. Example for an unversioned dependency: python3 Example for a versioned dependency: python3 >= 3.2 .. versionadded:: 1.0.0 z%s %s %sN)rDrLrPrJrrrrIszBaseDependency.rawstrcCs|jjS)zType of the dependency. This should be one of 'Breaks', 'Conflicts', 'Depends', 'Enhances', 'PreDepends', 'Recommends', 'Replaces', 'Suggests'. Additional types might be added in the future. rCZdep_type_untranslatedrJrrrrHs zBaseDependency.rawtypecCs |jjdkS)zWhether this is a PreDepends. PreDependsrbrJrrr pre_dependszBaseDependency.pre_dependN)rrrr r<rOrrKrNpropertyrLrMrPrDrYrarIrHrdrrrrr%rs.        r%csleZdZdZfddZddZddZedd Zed d Z ed d Z eddZ eddZ Z S)r&aMRepresent an Or-group of dependencies. Attributes defined here: or_dependencies - The possible choices rawstr - String represenation of the Or-group of dependencies rawtype - The type of the dependencies in the Or-group target_version - A list of Versions which satisfy this Or-group of deps cs tt||||_||_dSr)superr&rrB_rawtype)rrD base_depsrH __class__rrrszDependency.__init__cCsd|j|jfSrFrGrJrrrrKszDependency.__str__cCsdddd|DS)Nz, css|]}t|VqdSr)reprr^bdrrr sz&Dependency.__repr__..joinrJrrrrNszDependency.__repr__cCs|SrrrJrrror_dependenciesszDependency.or_dependenciescCsddd|DS)axString represenation of the Or-group of dependencies. Returns the string representation of the Or-group of dependencies as it would be written in the debian/control file. The string representation does not include the type of the Or-group of dependencies. Example: python2 >= 2.7 | python3 .. versionadded:: 1.0.0 z | css|] }|jVqdSr)rIrmrrrro2sz$Dependency.rawstr..rprJrrrrI$szDependency.rawstrcCs|jS)aType of the Or-group of dependency. This should be one of 'Breaks', 'Conflicts', 'Depends', 'Enhances', 'PreDepends', 'Recommends', 'Replaces', 'Suggests'. Additional types might be added in the future. .. versionadded:: 1.0.0 )rgrJrrrrH4s zDependency.rawtypecCs0g}|D]"}|jD]}||kr||qq|S)zlA list of all Version objects which satisfy this Or-group of deps. .. versionadded:: 1.0.0 )rYrS)rrTrnrXrrrrYBs  zDependency.target_versionscCsdd|jDS)rZcSsg|]}|jr|qSrr[r]rrrr_Wsz8Dependency.installed_target_versions..r`rJrrrraPsz$Dependency.installed_target_versions)rrrr rrKrNrerrrIrHrYra __classcell__rrrirr&s     r&c@s eZdZdZddZddZdS)r'aThe origin of a version. Attributes defined here: archive - The archive (eg. unstable) component - The component (eg. main) label - The Label, as set in the Release file origin - The Origin, as set in the Release file codename - The Codename, as set in the Release file site - The hostname of the site. trusted - Boolean value whether this is trustworthy. cCsb|j|_|j|_|j|_|j|_|j|_|j|_|j|_|jj |}|rX|j rXd|_ nd|_ dSNTF) archive componentlabeloriginZcodenamesiteZ not_automaticrR_list find_index is_trustedtrusted)rrW packagefile indexfilerrrrgs zOrigin.__init__cCs d|j|j|j|j|j|jfS)NzH)rvrurxrwryr}rJrrrrNwszOrigin.__repr__N)rrrr rrNrrrrr'Zs r'c@sbeZdZdZddZddZddZdd Zd d Zd d Z ddZ dddZ ddZ ddZ dS)r)a"Record in a Packages file Represent a record as stored in a Packages file. You can use this like a dictionary mapping the field names of the record to their values:: >>> record = Record("Package: python-apt\nVersion: 0.8.0\n\n") >>> record["Package"] 'python-apt' >>> record["Version"] '0.8.0' For example, to get the tasks of a package from a cache, you could do:: package.candidate.record["Tasks"].split() Of course, you can also use the :attr:`Version.tasks` property. cCst||_dSr)r2Z TagSection_rec)rZ record_strrrrrszRecord.__init__cCs t|jSr)hashrrJrrr__hash__szRecord.__hash__cCs t|jSr)r<rrJrrrrKszRecord.__str__cCs |j|SrrrrrrrszRecord.__getitem__cCs ||jkSrrrrrr __contains__szRecord.__contains__cCst|jSr)iterrkeysrJrrr__iter__szRecord.__iter__ccs$|jD]}||j|fVq dS)z6An iterator over the (key, value) items of the record.N)rrrrrr iteritemsszRecord.iteritemsNcCs|j||S)zReturn record[key] if key in record, else *default*. The parameter *default* must be either a string or None. )rgetrrdefaultrrrrsz Record.getcCs ||jkS)z deprecated form of ``key in x``.rrrrrhas_keyszRecord.has_keycCs t|jSr)lenrrJrrr__len__szRecord.__len__)N)rrrr rrrKrrrrrrrrrrrr)s r)c@seZdZdZddZddZddZdd Zd d Zd d Z ddZ ddZ ddZ ddZ ddZeddZeddZeddZeddZed d!Zed"d#Zed$d%Zed&d'Zed(d)Zed*d+Zed,d-Zed.d/Zed0d1Zed2d3Zed4d5Zed6d7Zed8d9Z ed:d;Z!dd?Z#ed@dAZ$edBdCZ%edDdEZ&edFdGZ'edHdIZ(edJdKZ)edLdMZ*edNdOZ+edPdQZ,edRdSZ-dTdUZ.edVdWZ/edXdYZ0dad\d]Z1dbd_d`Z2d[S)cr*zRepresentation of a package version. The Version class contains all information related to a specific package version. .. versionadded:: 0.7.9 cCs ||_||_|jjj|dSr)rQ_candrRZ _weakversionsadd)rrQcandrrrrszVersion.__init__c Csz@|jj}|jj}||kr WdS||kr.WdSt|jj|jWStk rzt|jj|WYStk rt YYSXYnXdS)a:Compares against another apt.Version object or a version string. This method behaves like Python 2's cmp builtin and returns an integer according to the outcome. The return value is negative in case of self < other, zero if self == other and positive if self > other. The comparison includes the package name and architecture if other is an apt.Version object. If other isn't an apt.Version object it'll be assumed that other is a version string (without package name/arch). .. versionchanged:: 1.0.0 N) rQfullnamer2version_comparerver_strrDAttributeError TypeErrorNotImplemented)rr?Z self_nameZ other_namerrr_cmpsz Version._cmpcCs||dkSNrrr>rrrr=szVersion.__eq__cCs||dkSrrr>rrr__ge__szVersion.__ge__cCs||dkSrrr>rrr__gt__szVersion.__gt__cCs||dkSrrr>rrr__le__szVersion.__le__cCs||dkSrrr>rrr__lt__szVersion.__lt__cCs.z||dkWStk r(tYSXdSr)rrrr>rrrr@szVersion.__ne__cCs|jjSr)rrrJrrrr szVersion.__hash__cCsd|jj|jfS)Nz%s=%srQrLrDrJrrrrKszVersion.__str__cCsd|jj|jfS)Nz rrJrrrrNszVersion.__repr__cCs*|jjj|jjds td|jjjS)z=Internal helper that moves the Records to the right position.rzCould not lookup record)rQrR_recordslookupr file_list LookupErrorrJrrrrszVersion._recordscCs.|jj}|jjj|jdr*|jjjSdS)z2Internal helper to get the translated description.rN)rZtranslated_descriptionrQrRrrrpop)rZ desc_iterrrr_translated_records"s zVersion._translated_recordscCs|jjS)z.Return the size of the package when installed.)rinstalled_sizerJrrrr+szVersion.installed_sizecCs|jjS)z$Return the homepage for the package.)rhomepagerJrrrr1szVersion.homepagecCs|jjS)zReturn the size of the package.)rr4rJrrrr47sz Version.sizecCs|jjS)z/Return the architecture of the package version.)rZarchrJrrr architecture=szVersion.architecturecCs t|jjS)z:Return whether the version of the package is downloadable.)boolr downloadablerJrrrrCszVersion.downloadablecCs |jj}|dk o|jj|jjkS)zkReturn wether this version of the package is currently installed. .. versionadded:: 1.0.0 N)rQ installedrid)rZinst_verrrrr\IszVersion.is_installedcCs|jjS)zReturn the version as a string.)rrrJrrrrDSszVersion.versioncCs|j}|dk r|jSdS)z0Return the short description (one line summary).N)rZ short_desc)rrecordsrrrsummaryYszVersion.summarycCs|jjS)z"return the long description (raw).)r long_descrJrrrraw_description`szVersion.raw_descriptioncCs|jjS)z"Return the section of the package.)rsectionrJrrrrfszVersion.sectionc CsBd}|j}|dk r|jnd}|s0td|jjSzt|tsF|d}Wn:tk r}ztd|jj|fWYSd}~XYnXt | d}t ||D]}| dkr| ds|d7}q|d r| dsd |d d}nd |d d}n:|d r0| ds|dkr*|dd}n|}n|}||7}q|S)zReturn the formatted long description. Return the formatted long description according to the Debian policy (Chapter 5.6.13). See http://www.debian.org/doc/debian-policy/ch-controlfields.html for more information. Nz+Missing description for '%s'.Please report.utf-8z.)rZ provides_listrJrrrprovidesszVersion.providescCs |dS)z4Return the list of enhances for the package version.ZEnhancesrrJrrrenhancesszVersion.enhancescCs |ddS)z/Return the dependencies of the package version.rcZDependsrrJrrr dependenciesszVersion.dependenciescCs |dS)z-Return the recommends of the package version.Z RecommendsrrJrrr recommendsszVersion.recommendscCs |dS)z+Return the suggests of the package version.ZSuggestsrrJrrrsuggestsszVersion.suggestscCs,g}|jjD]\}}|t|j|q |S)z1Return a list of origins for the package version.)rrrSr'rQ)roriginsr~_unusedrrrrszVersion.originscCs|jjS)zZReturn the path to the file inside the archive. .. versionadded:: 0.7.10 )rfilenamerJrrrr szVersion.filenamecCs|jjS)zKReturn the md5sum of the binary. .. versionadded:: 0.7.10 )rZmd5_hashrJrrrmd5sz Version.md5cCs|jjS)zLReturn the sha1sum of the binary. .. versionadded:: 0.7.10 )rZ sha1_hashrJrrrsha1sz Version.sha1cCs|jjS)zNReturn the sha256sum of the binary. .. versionadded:: 0.7.10 )rZ sha256_hashrJrrrsha256%szVersion.sha256cCst|jdS)zGet the tasks of the package. A set of the names of the tasks this package belongs to. .. versionadded:: 0.8.0 ZTask)setrrrJrrrtasks.s z Version.tasksccs:|jjD],\}}|jjj|}|r||jjVqdS)zVReturn an iterator over all available urls. .. versionadded:: 0.7.10 N) rrrQrRrzr{ archive_urirr)rr~rrrrr_uris9sz Version._uriscCs t|S)z^Return a list of all available uris for the binary. .. versionadded:: 0.7.10 )listrrJrrrurisDsz Version.uriscCs.ztt|WStk r(YdSXdS)zNReturn a single URI for the binary. .. versionadded:: 0.7.10 N)rrr StopIterationrJrrruriMsz Version.urirNc Cs@|dkrtjdd}tj|jj}tj||}t ||j |jj r`t d|tj|S|jjd\}}|jjj|}|s|r|jstd|jj|jt|ddf|jstd |jj } |s| jstd |t|ptjj !} tj"| |j| |j ||d } | #| j$| j%kr4t&d | j'| j(ftj|S) aCFetch the binary version of the package. The parameter *destdir* specifies the directory where the package will be fetched to. The parameter *progress* may refer to an apt_pkg.AcquireProgress() object. If not specified or None, apt.progress.text.AcquireProgress() is used. The keyword-only parameter *allow_unauthenticated* specifies whether to allow unauthenticated downloads. If not specified, it defaults to the configuration option `APT::Get::AllowUnauthenticated`. .. versionadded:: 0.7.10 NAPT::Get::AllowUnauthenticatedF"Ignoring already existing file: %sr>Could not fetch %s %s source package: Source %r is not trusteddescribezzNo URI for this binary.8The item %r could not be fetched: No trusted hash found.destfile$The item %r could not be fetched: %s))r2configfind_br-r.basenamerrrqr5r4r3loggingdebugabspathrrrQrRrzr{r|r8rLrDgetattrr ValueErrorusableAcquireaptprogresstextr" AcquireFilerunstatus STAT_DONEr6r error_text) rdestdirrallow_unauthenticatedbaserZpfileoffsetindexr3acqZacqfilerrr fetch_binaryYsH      zVersion.fetch_binaryTc Cs|dkrtjdd}t}t|p0tjj}d}|j }|j pJ|j j } |j pX|jj} || } | r~| |jkr~|| } qd| std|t} |s|jjstd|j j|j|jjf|jD]} tj| j}tj||}| jdkr|}t|| j | j!rt"#d|q|s.| j!j$s.td|| %tj&||j'| j| j!| j ||d q|(|dkrxtd||j)D](}|j*|j+kr~t,d |j-|j.fq~|r|j d t/|j}tj||}t01d d ||gtj2|Stj2|SdS)a9Get the source code of a package. The parameter *destdir* specifies the directory where the source will be fetched to. The parameter *progress* may refer to an apt_pkg.AcquireProgress() object. If not specified or None, apt.progress.text.AcquireProgress() is used. The parameter *unpack* describes whether the source should be unpacked (``True``) or not (``False``). By default, it is unpacked. If *unpack* is ``True``, the path to the extracted directory is returned. Otherwise, the path to the .dsc file is returned. The keyword-only parameter *allow_unauthenticated* specifies whether to allow unauthenticated downloads. If not specified, it defaults to the configuration option `APT::Get::AllowUnauthenticated`. NrFzNo source for %rrrrrrr-z dpkg-sourcez-x)3r2rr SourceRecordsrrrrr"rrrQrrrrrrDrrr r|r8rLrfilesr-r.rrqtyper5r4r3rrrrSrrritemsrrr6rrZupstream_version subprocessZ check_callr)rrrZunpackrsrcr rrrrZ source_lookuprZfilrritemZoutdirrrr fetch_sourcesn               zVersion.fetch_source)rNN)rNTN)3rrrr rrr=rrrrr@rrKrNrerrrrr4rrr\rDrrrrrrrrrrrrrrrrrrrrrrrrr rrrrrr*s             5                    6r*c@sdeZdZdZdddZddZddZd d Zd d Zd dZ ddZ ddZ ddZ dddZ dS)r+aProvide a mapping & sequence interface to all versions of a package. This class can be used like a dictionary, where version strings are the keys. It can also be used as a sequence, where integers are the keys. You can also convert this to a dictionary or a list, using the usual way of dict(version_list) or list(version_list). This is useful if you need to access the version objects multiple times, because they do not have to be recreated this way. Examples ('package.versions' being a version list): '0.7.92' in package.versions # Check whether 0.7.92 is a valid version. package.versions[0] # Return first version or raise IndexError package.versions[0:2] # Return a new VersionList for objects 0-2 package.versions['0.7.92'] # Return version 0.7.92 or raise KeyError package.versions.keys() # All keys, as strings. max(package.versions) NcCs$||_|jj|_|r |j||_dSr)_packagerUZ version_list _versions)rrQZslice_rrrrs zVersionList.__init__cCs|t|tr||j|Szt|j|j|WStk rj|jD]"}|j|krBt|j|YSqBYnXtd|dS)NzVersion: %r not found.) rslicerjrr*rrrrrrverrrrrs   zVersionList.__getitem__cCsdddd|DS)Nz[%s]rkcss|]}t|VqdSr)r<r^rrrrro sz&VersionList.__str__..rprJrrrrK szVersionList.__str__cCs d|S)Nz)rrJrrrrNszVersionList.__repr__csfddjDS)z*Return an iterator over all value objects.c3s|]}tj|VqdSr)r*rrrJrrrosz'VersionList.__iter__..rrJrrJrrszVersionList.__iter__cCs0t|tr|j}|jD]}|j|krdSqdSrt)rr*rDrrrrrrrs    zVersionList.__contains__cCst|t|kSr)rr>rrrr="szVersionList.__eq__cCs t|jSr)rrrJrrrr&szVersionList.__len__cCsdd|jDS)z*Return a list of all versions, as strings.cSsg|] }|jqSr)rrrrrr_/sz$VersionList.keys..rrJrrrr,szVersionList.keyscCs(z ||WStk r"|YSXdS)zReturn the key or the default.N)rrrrrr1s zVersionList.get)N)N)rrrr rrrKrNrrr=rrrrrrrr+s  r+c@seZdZdZddZddZddZdd Zed d Z e j d d Z ed dZ eddZ eddZ eddZeddZeddZddZeddZeddZedd Zed!d"Zed#d$Zed%d&Zed'd(Zed)d*Zed+d,Zed-d.Zed/d0ZdJd2d3Zed4d5Zed6d7Zed8d9Z ed:d;Z!d)rUrLrrrJrrrrNMs zPackage.__repr__cCs |j|jkSrrr>rrrrRszPackage.__lt__cCs&|jj|j}|dk r"t||SdS)zReturn the candidate version of the package. This property is writeable to allow you to set the candidate version of the package. Just assign a Version() object, and it will be set as the candidate version. N)rRrZget_candidate_verrUr*)rrrrr candidateVs  zPackage.candidatecCs,|j|jj|j|j|jdS)z)Set the candidate version of the package.N)rRcache_pre_changerZset_candidate_verrUrcache_post_change)rrDrrrrds cCs|jjdk rt||jjSdS)z`Return the currently installed version of the package. .. versionadded:: 0.7.9 N)rU current_verr*rJrrrrls zPackage.installedcCs |jdS)a}Return the name of the package, possibly including architecture. If the package is not part of the system's preferred architecture, return the same as :attr:`fullname`, otherwise return the same as :attr:`shortname` .. versionchanged:: 0.7.100.3 As part of multi-arch, this field now may include architecture information. TrUZ get_fullnamerJrrrrLwsz Package.namecCs |jdS)zReturn the name of the package, including architecture. Note that as for :meth:`architecture`, this returns the native architecture for Architecture: all packages. .. versionadded:: 0.7.100.3Fr#rJrrrrs zPackage.fullnamecCs|jjS)zZReturn the name of the package, without architecture. .. versionadded:: 0.7.100.3)rUrLrJrrrrszPackage.shortnamecCs|jjS)znReturn a uniq ID for the package. This can be used eg. to store additional information about the pkg.)rUrrJrrrrsz Package.idcCs|jjS)z>Return True if the package is an essential part of the system.)rU essentialrJrrrr$szPackage.essentialcCs|jjS)aReturn the Architecture of the package. Note that for Architecture: all packages, this returns the native architecture, as they are internally treated like native packages. To get the concrete architecture, look at the :attr:`Version.architecture` attribute. .. versionchanged:: 0.7.100.3 This is now the package's architecture in the multi-arch sense, previously it was the architecture of the candidate version and deprecated. )rUrrJrrrrszPackage.architecturecCs|jj|jS)z5Return ``True`` if the package is marked for install.)rRrmarked_installrUrJrrrr%szPackage.marked_installcCs|jj|jS)z5Return ``True`` if the package is marked for upgrade.)rRrmarked_upgraderUrJrrrr&szPackage.marked_upgradecCs|jj|jS)z4Return ``True`` if the package is marked for delete.)rRr marked_deleterUrJrrrr'szPackage.marked_deletecCs|jj|jS)z2Return ``True`` if the package is marked for keep.)rRr marked_keeprUrJrrrr(szPackage.marked_keepcCs|jj|jS)z! Package is marked for downgrade )rRrmarked_downgraderUrJrrrr)szPackage.marked_downgradecCs|jj|jS)z7Return ``True`` if the package is marked for reinstall.)rRrmarked_reinstallrUrJrrrr*szPackage.marked_reinstallcCs |jjdk S)z,Return ``True`` if the package is installed.N)rUr"rJrrrr\szPackage.is_installedcCs|jo|jj|jS)z-Return ``True`` if the package is upgradable.)r\rRr is_upgradablerUrJrrrr+szPackage.is_upgradablecCs|js |jo|jj|jS)zReturn ``True`` if the package is no longer required. If the package has been installed automatically as a dependency of another package, and if no packages depend on it anymore, the package is no longer required. )r\r%rRrZ is_garbagerUrJrrris_auto_removables zPackage.is_auto_removablecCs|jj|jS)z@Return whether the package is marked as automatically installed.)rRris_auto_installedrUrJrrrr-szPackage.is_auto_installedc Cst|j|jfD]b}d|}zd}n8|jjdjdkrVd}n td}t|trl|S|d S|jj}d }|jj }|jj }z t }Wnt k rYnTX||r|jsq|jj |jkr|j}|j }qt |j|dkr|j}|j }q|d d } t| d kr(| d}~ |d} |d rJd |d} |dd } t| d krvd| d d}~ ||| ||d}t} zz@td|r|rWWdSt|} d}dt|}|r|rWWdS| }|sq|d }t||}|rt|jdd}|rRd|krR|dd d }| d }|r|d|kr||dd d }|rt ||dkrq||7}qt|dkrtd}t|ts|d }||_Wnt!k rF|jjdjdkrtd||f}ntd}t|tr0|YWhS|d YWVSYnLt"t#fk rtd}t|trz|YWS|d YW SYnXW5t| X|jS)a Download the changelog of the package and return it as unicode string. The parameter *uri* refers to the uri of the changelog file. It may contain multiple named variables which will be substitued. These variables are (src_section, prefix, src_pkg, src_ver). An example is the Ubuntu changelog:: "http://changelogs.ubuntu.com/changelogs/pool" \ "/%(src_section)s/%(prefix)s/%(src_pkg)s" \ "/%(src_pkg)s_%(src_ver)s/changelog" The parameter *cancel_lock* refers to an instance of threading.Event, which if set, prevents the download. rz$The list of changes is not availableNrZDebianzshttp://packages.debian.org/changelogs/pool/%(src_section)s/%(prefix)s/%(src_pkg)s/%(src_pkg)s_%(src_ver)s/changelogZUbuntuzuhttp://changelogs.ubuntu.com/changelogs/pool/%(src_section)s/%(prefix)s/%(src_pkg)s/%(src_pkg)s_%(src_ver)s/changelogrmain/rlibr,:) src_sectionprefixsrc_pkgsrc_verrz^%s \((.*)\)(.*)$rDzThe list of changes is not available yet. Please use http://launchpad.net/ubuntu/+source/%s/%s/+changelog until the changes become available or try again later.zOFailed to download the list of changes. Please check your Internet connection.)$rrrrrxrrrrrrr2r SystemErrorrrDrrrrrqsocketZgetdefaulttimeoutZsetdefaulttimeoutZis_setrreescapereadlinematchrrgrouprIOErrorr)rrZ cancel_lockresr8r6rr9Z src_recordsZ section_splitr7Z src_ver_splitZtimeoutZchangelog_fileZ changelogZregexpZline_rawrr?rZ changelog_verrrr get_changelogs                         zPackage.get_changelogcCst|S)zcReturn a VersionList() object for all available versions. .. versionadded:: 0.7.9 )r+rJrrrversionsszPackage.versionscCs|jj|jS)z5Return True if the to-be-installed package is broken.)rRris_inst_brokenrUrJrrrrEszPackage.is_inst_brokencCs|jj|jS)z/Return True if the installed package is broken.)rRr is_now_brokenrUrJrrrrFszPackage.is_now_brokencCs|jjtjkS)z8Checks whether the package is is the config-files state.)rUZ current_stater2ZCURSTATE_CONFIG_FILESrJrrrhas_config_filesszPackage.has_config_filescCs(|j|jj|j|jdS)zMark a package for keep.N)rRr r mark_keeprUr!rJrrrrHs zPackage.mark_keepTFcCsv|j|jj|j||rh|jjjdkrht|jj}||j| |j| |j| |j dS)a+Mark a package for deletion. If *auto_fix* is ``True``, the resolver will be run, trying to fix broken packages. This is the default. If *purge* is ``True``, remove the configuration files of the package as well. The default is to keep the configuration. rN) rRr r mark_deleterU broken_countr2ProblemResolverclearprotectremoveresolver!)rauto_fixpurgeZfixrrrrIs    zPackage.mark_deletecCsn|j|jj|j|||r`|jjjdkr`t|jj}||j| |j| d|j dS)a0Mark a package for install. If *autoFix* is ``True``, the resolver will be run, trying to fix broken packages. This is the default. If *autoInst* is ``True``, the dependencies of the packages will be installed automatically. This is the default. If *fromUser* is ``True``, this package will not be marked as automatically installed. This is the default. Set it to False if you want to be able to automatically remove the package at a later stage when no other package depends on it. rTN) rRr r mark_installrUrJr2rKrLrMrOr!)rrPZ auto_inst from_userZfixerrrrrRs    zPackage.mark_installcCs<|jr$|j}|j|d||ntjd|jjdS)zMark a package for upgrade.)rSz4MarkUpgrade() called on a non-upgradeable pkg: '%s' N) r+r-rR mark_autosysstderrwriterUrL)rrSautorrr mark_upgrades  zPackage.mark_upgradecCs|jj|j|dS)aMark a package as automatically installed. Call this function to mark a package as automatically installed. If the optional parameter *auto* is set to ``False``, the package will not be marked as automatically installed anymore. The default is ``True``. N)rRrrTrU)rrXrrrrTszPackage.mark_autocCs|jj||dS)aCommit the changes. The parameter *fprogress* refers to a apt_pkg.AcquireProgress() object, like apt.progress.text.AcquireProgress(). The parameter *iprogress* refers to an InstallProgress() object, as found in apt.progress.base. N)rRrcommit)rZ fprogressZ iprogressrrrrZ&s zPackage.commit)NN)TF)TTT)T)T)(rrrr rrKrNrrersetterrrLrrrr$rr%r&r'r(r)r*r\r+r,r-r1rCrDrErFrGrHrIrRrYrTrZrrrrr(:sx                    /       r(c Cstdddl}ttjj}t|}|d}td|j td|j td|j j td|j j td |j jtd |j jtd |j jtd |j jtd |j jtd|jtd|j jtd|j jtd|j jtd|j jtd|j jtd|j jtd|j j|j jD] }tddd|jDqHtd|j jtd|j jtd|j jt|ddD]`}td||D]*}|j r|!dddkr|"|qtd |j#j$td!|j#j%qtdD]}td"|t|}|&D]N}|!dddkr:z||'|Wn"t(k rtd#|YnXq:td |j#j$td$|j#j)qdS)%z Self-test.zSelf-test for the Package modulrNz apt-utilsz Name: %s zID: %s zPriority (Candidate): %s zPriority (Installed): %s zInstalled: %s zCandidate: %s zCandidateDownloadable: %szCandidateOrigins: %szSourcePkg: %s z Section: %s z Summary: %szDescription (formatted) : %szDescription (unformatted): %szInstalledSize: %s zPackageSize: %s zDependencies: %szRecommends: %s,css&|]}d|j|j|j|jfVqdS)z%s (%s) (%s) (%s)N)rLrDrMrd)r^orrrroNsz_test..zarch: %sz homepage: %szrec: Z2vcard)TFz8Running install on random upgradable pkgs with AutoFix: rz Broken: %s zInstCount: %s z.Randomly remove some packages with AutoFix: %szError trying to remove: %s z DelCount: %s )*printrandomr2ZinitrrrZ OpProgressZCacherLrrrrrDrrrrrrrrr4rrrqrrrrrrCr+ZrandintrRrrJZ inst_countrrIr:Z del_count)r_rrVrWrEirLrrr_test3sf        ra__main__)>r Z __future__rrr-rUr<r;rZ threadingZ http.clientrZ urllib.errorrZurllib.requestr ImportErrorZhttplibZurllib2typingrrrr r r r r rrrr collectionsobjectrrr2Zapt.progress.textrZapt.progress.baser"r#r$r__all__ version_infomajorr<rr5 Exceptionr6r8r%r&r'r)r*r+r(rarrrrrs    8     S%D!Z| :