+
    Zh                        ^ RI t ^ RIt^ RIHt ^ RIHtHtHtHtH	t	 ^ RI
Ht ^ RIHtHtHt ^ RIHt ^ RIHt ^ RIHtHtHt ^ R	IHt ^ R
IHt ^ RIHt ]! R. RO4      t]P>                  ! ]P@                  R7      R R l4       t!R t"R t#R t$]! R]PJ                  ]PL                  ]$]PN                  R]! ]! R]PP                  R7      .R7      .R7      t)R# )    N)
namedtuple)defaults
exceptionsmessagessystemutil)VulnerabilityData)CVEInfoCVEsOptions_cves)#query_installed_source_pkg_versions)cli_util)ProArgumentProArgumentGroup
ProCommand)Table)HelpCategoryUAConfigAffectedPackage)msgc                $    V ^8  d   QhR\         /# )   cfgr   )formats   "2/usr/lib/python3/dist-packages/uaclient/cli/cve.py__annotate__r      s      8     c                n     \        \        4       VR 7      pV#   \        P                   d    Rp T# i ; i))optionsr   N)r   r   r   VulnerabilityDataNotFound)argsr   kwargsresults   &$, r   _get_cve_vulnerabilitiesr%      s=    {}#6 M // Ms    44c                    . p\        4       pVP                   F  pVP                  V/ 4      P                  4       p\	        V4       F  pV P
                  P                  V4      pV'       g   K(  VP                   FS  p	V	P                  V8X  g   K  VP                  \        VV	P                  V	P                  V	P                  R 7      4        K  	  K  	  K  	  V# )name
fix_status
fix_originfix_version)r   related_packagesgetkeyssortedpackagescvesr(   appendr   r)   r*   r+   )
cve_vulnerabilitiescve_infocve_namerowsinstalled_pkgs_by_source
source_pkgbinary_pkgs
binary_pkgbinary_pkg_infocves
   &&&       r   _get_affected_pkgsr=       s    DBD//
.22:rBGGI -J1::>>zJO*//Cxx8++%/+.>>+.>>,/OO	  0	 . 0& Kr   c                 h   . pV  F  pVP                   R 8X  d^   VP                  RP                  VP                  4      VP                   RP                  VP                  4      VP
                  .4       Kq  VP                  RP                  VP                  4      VP                   RR.4       K  	  V# )fixedz{}:z({}) )r)   r2   r   r(   r*   r+   )affected_pkgsformatted_rowsaffected_pkgs   &  r   _format_affected_pkgsrD   :   s    N%""g-!!LL!2!23 ++MM,"9"9: ,,	 !!LL!2!23 ++	 &( r   c                	   V P                   P                  4       p\        WR 7      pV'       g   \        P                  ! 4       hW4P
                  9  Ed(   \        V4      P                  4       P                  R/ 4      P                  R/ 4      P                  V4      pV'       g   \        P                  ! 4       P                  p\        \        P                  P                  V P                   VRP                  \        P                   V4      R7      \"        P$                  R7       R# \'        VR,          \(        P*                  ! VR,          4      VR	,          VR
,          VR,          VR,          . R7      pRpMLVP
                  V,          p\-        \/        WGV P                   4      4      p	\1        V	R7      P3                  4       p\        RP                  V4      4       \        RP                  \        P                   V4      4       \        RP                  VP4                  P7                  R4      4      4       \        RP                  VP8                  P7                  R4      4      4       \        RP                  VP:                  P7                  R4      4      4       \        RP                  \<        P>                  ! VP@                  4      4      4       VPB                  '       d%   \        RP                  VPB                  4      4       VPD                  '       d%   \        RP                  VPD                  4      4       \        R4       \        RP                  RPG                  \H        PJ                  ! VPL                  \        PN                  RRRRR7      4      4      4       VPP                  '       dR   \        R4       VPP                   F6  p
\        \H        PR                  ! V
\        PN                  RRR R!R7      4       K8  	  V'       d6   \        R"4       VPU                  4        F  p\        RV,           4       K  	  M\        R#4       VPV                  '       d   VPV                   Uu. uF=  pVPX                  '       g   K  R$P                  VPZ                  VPX                  4      NK?  	  ppV'       d"   \        R%4       V F  p\        V4       K  	  R# R# R# u upi )&)r   security_issuesr1   z{}/{})issuereleaseurl)fileNdescriptionpublished_atubuntu_prioritynotes
cvss_scorecvss_severity)rK   rL   priorityrN   rO   rP   related_usnsr@   )r6   zname:            {}zpublic-url:      {}/{}zpublished-at:    {}z%Y-%m-%dzcve-cache-date:  {}zapt-cache-date:  {}zpriority:        {}zcvss-score:      {}zcvss-severity:   {}zdescription: |z{}
Fz  )widthbreak_long_wordsbreak_on_hyphensinitial_indentsubsequent_indentznotes:z  - z    zaffected_packages:zaffected_packages: []z  {}: {}zrelated_usns:).r<   upperr%   r   r!   r1   r	   r-   r   get_release_inforH   printr   CLI_CVE_NOT_FOUND_IN_DATAr   r   BASE_SECURITY_URLsysstderrr
   r   parse_rfc3339_daterD   r=   r   	to_stringrL   strftimevulnerability_data_published_atapt_updated_atr   colorize_priorityrQ   rO   rP   jointextwrapwraprK   PRINT_WRAP_WIDTHrN   fill
splitlinesrR   titler(   )r"   r   r#   r5   r3   cve_datarH   r4   affected_pkgs_tableaffected_pkgs_rowsnotelineusnrR   related_usns   &$,            r   
action_cvert   T   s   xx~~H24A2244///c"SUS"B'S_S] 	 --/77G2299((#x'A'A8L : 
 ZZ  /00.1IJ/07#-"?3
 !&++H522dhhG
 $);<FFH	

&
&x
01	 ''(B(BHM 
$$!!**:6	

 
$$??HH	
 
$$..77
C	

 
$$&&x'8'89	
 #**8+>+>?@#**8+A+ABC	
	II(("33%*%*#'&*		
 ~~~hNND"33%*%*#)&,	 # "#'224D$+ 5 	%&  ,,
,yy 3Jchh		2, 	 
 /"+k"  ,  
s   9S+*S+r<   T)help)	arguments)ru   rK   actionhelp_categorypreserve_descriptionargument_groupsr'   )*r^   rg   collectionsr   uaclientr   r   r   r   r   +uaclient.api.u.pro.security.cves._common.v1r	   #uaclient.api.u.pro.security.cves.v1r
   r   r   'uaclient.api.u.pro.security.fix._commonr   uaclient.clir   uaclient.cli.commandsr   r   r   uaclient.cli.formatterr   uaclient.cli.parserr   uaclient.configr   r   with_spinnerCLI_CVES_SPINNER_MSGr%   r=   rD   rt   CLI_CVECLI_CVE_DESCSECURITYCLI_CVE_ISSUEcve_command r   r   <module>r      s    
  " A A I K K " K K ( , $J
 
8889 :44~#B 				%%''!//	
	r   