ó ¾[/\c@sœddlmZddlmZddlZddlmZddlmZddl Z ddl Z ddl Z e j dƒZ dejfd„ƒYZdS( iÿÿÿÿ(tprint_function(tunicode_literalsN(t_(tcommandsudnft MarkCommandcBsVeZdZedƒZed„ƒZd„Zd„Zd„Z d„Z d„Z RS( umarku7mark or unmark installed packages as installed by user.cCs?|jdddddddgdd ƒ|jd dd ƒdS( Numarktnargsitchoicesuinstalluremoveugrouptmetavaru[ install | remove | group ]upackageu+(t add_argument(tparser((s9/usr/lib/python2.7/site-packages/dnf/cli/commands/mark.pyt set_argparser)s!cCs<|jjj|tjjƒtjtdƒt |ƒƒdS(Nu%s marked as user installed.( tbasethistoryt set_reasontlibdnft transactiontTransactionItemReason_USERtloggertinfoRtstr(tselftpkg((s9/usr/lib/python2.7/site-packages/dnf/cli/commands/mark.pyt _mark_install/scCs<|jjj|tjjƒtjtdƒt |ƒƒdS(Nu%s unmarked as user installed.( R R R RRt TransactionItemReason_DEPENDENCYRRRR(RR((s9/usr/lib/python2.7/site-packages/dnf/cli/commands/mark.pyt _mark_remove3scCs<|jjj|tjjƒtjtdƒt |ƒƒdS(Nu%s marked as group installed.( R R R RRtTransactionItemReason_GROUPRRRR(RR((s9/usr/lib/python2.7/site-packages/dnf/cli/commands/mark.pyt _mark_group7scCs4|jj}t|_t|_t|_t|_dS(N(tclitdemandstTruetsack_activationt root_usertFalsetavailable_repost resolving(RR((s9/usr/lib/python2.7/site-packages/dnf/cli/commands/mark.pyt configure;s     c Csk|jjd}|jj}tjt|d|ƒƒ}g}xr|D]j}tjj|ƒ}|j |j j ƒ}x|D]}||ƒqyWt |ƒdkrE|j |ƒqEqEW|rtjtdƒƒx$|D]}tjtdƒ|ƒqÓWtjj‚n|j jjƒ}|dkr2|j jƒ} n |j} |j jj| ggƒ|j jj| ƒdS(Niu_mark_uError:uPackage %s is not installed.(toptstmarktpackaget functoolstpartialtgetattrtdnftsubjecttSubjecttget_best_queryR tsacktlentappendRterrorRRtCliErrorR tlasttNonet_rpmdb_versiontend_rpmdb_versiontbegtend( Rtcmdtpkgst mark_functnotfoundRtsubjtqtoldt rpmdb_version((s9/usr/lib/python2.7/site-packages/dnf/cli/commands/mark.pytrunBs,      (umark( t__name__t __module__taliasesRtsummaryt staticmethodR RRRR#RA(((s9/usr/lib/python2.7/site-packages/dnf/cli/commands/mark.pyR$s     (t __future__RRtlibdnf.transactionRtdnf.i18nRtdnf.cliRR*R'tloggingt getLoggerRtCommandR(((s9/usr/lib/python2.7/site-packages/dnf/cli/commands/mark.pyts