+
    Zh                        ^ RI t ^ RIHtHt ^ RIHtHt ^ RIHt ^ RI	H
t
HtHt ^ RIHtHt ^ RIHt ^ RIHt ]P(                  ! ]P*                  R	7      R
 R l4       tR tR tR R ltR R lt]! R]P6                  ]P8                  ]]P:                  R]! ]
! R]P<                  RR7      ]
! R]P>                  RR7      .R7      .R7      t R# )    N)
exceptionsmessages)CVEsOptions_cves)cli_util)ProArgumentProArgumentGroup
ProCommand)Tablecreate_link)HelpCategoryUAConfig)msgc                $    V ^8  d   QhR\         /#    cfgr   )formats   "3/usr/lib/python3/dist-packages/uaclient/cli/cves.py__annotate__r      s      8     c                    \        V P                  V P                  R 7      p \        W1R7      pV#   \        P
                   d    Rp T# i ; i))fixable	unfixable)optionsr   N)r   r   r   r   r   VulnerabilityDataNotFound)argsr   kwargscve_optionsresults   &$,  r   _get_cve_vulnerabilitiesr"      sQ    ..K
{4 M // Ms   1 AAc                 N   . pV P                   P                  4        F  w  r#VP                   Fo  pV P                  P                  VP                  4      pV'       g   K2  TP                  TVP                  VP                  ;'       g    R VP                  34       Kq  	  K  	  V# )-)packagesitemscvesgetnameappendpriority
fix_origin)cve_vulnerabilitiesrowspackage_namepackage_infocvecve_infos   &     r   _get_cve_table_rowsr3      s    D&9&B&B&H&H&J"$$C*//33CHH=Hx$ ))--#		 % 'K Kr   c                     . p\        V R  R7       Fi  pVP                  V^ ,          \        P                  ! V^,          4      V^,          \	        V^,          RP                  V^,          4      R7      34       Kk  	  V# )c                 D    V ^ ,          RP                  V ^,          4      3# )r   )criticalhighmediumlow
negligible)index)rows   &r   <lambda>"_format_cve_rows.<locals>.<lambda>3   s     F?EEc!fM
r   )keyzhttps://ubuntu.com/security/{})texturl)sortedr*   r   colorize_priorityr   r   )cve_rowsformatted_rowsr<   s   &  r   _format_cve_rowsrF   /   s|    N
 	A**3q62AQ8??AG	
	
& r   c                $    V ^8  d   QhR\         /# r   r   )r   s   "r   r   r   G   s     2 2( 2r   c                    \        WR 7      pV'       g   \        P                  ! 4       hVP                  '       d   \	        \        V4      4      pV'       d   \        \        . ROVR7      4       R# V P                  '       d   \        \        P                  4       R# V P                  '       d   \        \        P                  4       R# \        \        P                  4       R# V P                  '       d   \        \        P                  4       R# V P                  '       d   \        \        P                  4       R# \        \        P                  4       R# ))r   )headersr.   N)PackagePriorityOriginVulnerability)r"   r   r   r%   rF   r3   printr   r   r   CLI_UNFIXABLE_CVES_NOT_AFFECTEDr   CLI_FIXABLE_CVES_NOT_AFFECTEDCLI_CVES_NOT_AFFECTED)r   r   r-   r.   s   &&  r   
_list_cvesrR   G   s    24A2244### 34G HIN ~~~h>>?h<<=h445>>>(::;\\\(889(001r   c                $    V ^8  d   QhR\         /# r   r   )r   s   "r   r   r   g   s     	 	h 	r   c                    V P                   '       d+   V P                  '       d   \        P                  ! R RR7      h \	        WR7       R#   \
         d#    \        P                  P                  4         R# i ; i)r   r   )option1option2)r   r   N)	r   r   r   InvalidOptionCombinationrR   BrokenPipeErrorsysstderrclose)r   r   r   s   &$,r   action_cvesr\   g   sW    ~~~$,,,11
 	
& 

s   A )A98A9r'   Tz--unfixable
store_true)helpactionz	--fixable)	arguments)r^   descriptionr_   help_categorypreserve_descriptionargument_groups)!rY   uaclientr   r   #uaclient.api.u.pro.security.cves.v1r   r   uaclient.clir   uaclient.cli.commandsr   r	   r
   uaclient.cli.formatterr   r   uaclient.cli.parserr   uaclient.configr   with_spinnerCLI_CVES_SPINNER_MSGr"   r3   rF   rR   r\   CLI_CVESCLI_CVES_DESCSECURITYCLI_CVES_UNFIXABLECLI_CVES_FIXABLEcves_command r   r   <module>ru      s    
 ) B ! K K 5 , $ 
8889 :(02@	 
			&&''!!44'
 !22'	
r   