+
    i  c                   s2    ^ RI HtHtHt  ! R R]]4      tR# )i    )PluginRedHatPlugin	PluginOptc                   sb   a  ] tR t^t o RtRtRtRtRtRt	]
! RRRR7      .tR tR	 tR
 tRtV tR# )	DNFPlugina  
The DNF plugin collects information for the dnf package manager and how it
is configured for local system.

By default, this plugin will collect configuration files from /etc/dnf,
repo files defined in /etc/yum.repos.d/, module information, and various
'dnf list' commands.

When using the 'history-info' option, detailed transaction information will
be collected for the most recent 50 dnf transactions, and will be saved to
the sos_commands/dnf/history-info directory.
zdnf package managerdnfhistory-infoFz$collect detailed transaction history)ZdefaultZdescc                s    V'       g   R# VP                  4        FF  pRV9   g   K  VP                  4       ^ ,          pVR8w  g   K,  V P                  RV,           RR7       KH  	  R# )zGet DN module information Nz[i]zHint:zdnf module info Zdnf_module_infotags)
splitlinessplitadd_cmd_output)selfmoduleslineZmodules   &&  ;/usr/lib/python3.14/site-packages/sos/report/plugins/dnf.pyget_modules_infoZDNFPlugin.get_modules_info(   sZ     &&(D}aW$''(:V(C-> ( @	 )    c                sl   V P                  R R/4       V P                  . RO4       V P                  R. ROR7       V P                  R4      '       d   V P                  R4       M3V P                  R4       V P                  R4       V P                  R4       V P                  R	R
R7       V P                  . R O4       V P                  RRR.R7       V P                  RRR.R7       V P                  R4       V P	                  RR.4       V P                  . R!O4       V P                  R4      '       g   V P                  RRR7       MV P                  RRR7      pR"pVR,          '       dO   VR,          P                  4        F3  p \        VP                  R4      ^ ,          P                  4       4      p M	  \        ^\        V^,           ^24      4       F  pV P                  RV 2RRR7       K  	  RpV P                  V4      pV P                  VR,          4       R#   \         d     K  i ; i)#z/etc/dnf/modules.d/.*.moduleZdnf_modulesz/etc/yum.repos.d/r   Zall_logs/var/log/dnf.*z/var/log/dnf.log*z/var/log/dnf.librepo.log*z/var/log/dnf.rpm.log*zdnf module listZdnf_module_listzdnf list installedZyum_list_installedZdnf_list_installedzdnf -C repolistZyum_repolistZdnf_repolistzdnf -C repolist --verbosez/etc/pki/entitlement/key.pemz/etc/pki/entitlement/*-key.pemr   zdnf historyZdnf_historyZoutputZ|zdnf history info Zdnf_history_info)Zsubdirr   zdnf module list --installedN)z	/etc/dnf/z/etc/yum.confz/etc/yum/pluginconf.d/z/etc/yum/vars/)Zyum_repos_dZdnf_repos_dZdnf_repo)zdnf --versionzdnf list extraszdnf updateinfo info securityzdnf updateinfo list --availablezpackage-cleanup --dupeszpackage-cleanup --problems)z/etc/pki/product/*.pemz/etc/pki/consumer/cert.pemz/etc/pki/entitlement/*.pemi)Zadd_file_tagsZadd_copy_specZ
get_optionr
   Zadd_forbidden_pathZcollect_cmd_outputr   Zintr	   ZstripZ
ValueErrorZrangeZminr   )r   ZhistoryZtransactionsr   Ztr_idZ
module_cmdr   s   &      r   setupZDNFPlugin.setup5   sV   *M
 	 	 
 	 	. J 	 	L ??:&&/023:;67-!2 	 	4 	 
 	 	0"68L!M 	 	O 	-"0.!A 	 	C 	78*,!
 	
 	 
 	 ~..MB--m3@ . BGLx  #H-88:D'*4::c?1+=+C+C+E'F ; q#l1nb"9:##&7w$?+9); $ = ; 3
))*5gh/0 & s   	/H$$H32H3c                s    R pRpR F  pV P                  W1V4       K  	  V P                  RW4       V P                  RR.4       R# )z(password(\s)*=(\s)*)(\S+)\nz\1********\n/etc/yum.repos.d/*/etc/dnf/dnf.confr   N)r   z/etc/dnf/vars/*)Zdo_path_regex_subZdo_file_subZdo_paths_http_sub)r   ZregexpZreplZfiles   &   r   postprocZDNFPlugin.postproc   sV     1=D""46 > 	,f; 	  
 	r    N)ZsystemZpackagemanagerZsysmgmt)r   )r   )Z__name__Z
__module__Z__qualname__Z__firstlineno__Z__doc__Z
short_descZplugin_nameZprofilesZfilesZpackagesr   Zoption_listr   r   r   Z__static_attributes__Z__classdictcell__)Z__classdict__s   @r   r   r      sT      'JK6H"EH 	.%=	?K
@K1Z r   r   N)Zsos.report.pluginsr    r   r   r   r   r   r   <module>r      s    ? >Q Qr   