+
    G%@i                     2    ^ RI HtHtHt  ! R R]]4      tR# )    )PluginRedHatPlugin	PluginOptc                   b   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)defaultdescc                    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 dnf_module_infotags)
splitlinessplitadd_cmd_output)selfmoduleslinemodules   &&  8/usr/lib/python3/dist-packages/sos/report/plugins/dnf.pyget_modules_infoDNFPlugin.get_modules_info(   sZ     &&(D}aW$''(:V(C-> ( @	 )    c                l   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/.*.modulednf_modulesz/etc/yum.repos.d/r   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 listdnf_module_listzdnf list installedyum_list_installeddnf_list_installedzdnf -C repolistyum_repolistdnf_repolistzdnf -C repolist --verbosez/etc/pki/entitlement/key.pemz/etc/pki/entitlement/*-key.pemr	   zdnf historydnf_historyoutput|zdnf history info dnf_history_info)subdirr   zdnf module list --installedN)z	/etc/dnf/z/etc/yum.confz/etc/yum/pluginconf.d/z/etc/yum/vars/)yum_repos_ddnf_repos_d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/*.pem)add_file_tagsadd_copy_spec
get_optionr   add_forbidden_pathcollect_cmd_outputr   intr   strip
ValueErrorrangeminr   )r   historytransactionsr   tr_id
module_cmdr   s   &      r   setup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                    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/*)do_path_regex_subdo_file_subdo_paths_http_sub)r   regexpreplfiles   &   r   postprocDNFPlugin.postproc   sV     1=D""46 > 	,f; 	  
 	r    N)systempackagemanagersysmgmt)r?   )r   )__name__
__module____qualname____firstlineno____doc__
short_descplugin_nameprofilesfilespackagesr   option_listr   r;   rF   __static_attributes____classdictcell__)__classdict__s   @r   r   r      sT      'JK6H"EH 	.%=	?K
@K1Z r   r   N)sos.report.pluginsr   r   r   r   rH   r   r   <module>r[      s    ? >Q Qr   