https://t.me/AnonymousX5
Server : Apache
System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64
User : njnconst ( 1116)
PHP Version : 8.4.18
Disable Function : NONE
Directory :  /usr/lib/python2.7/site-packages/redhat_support_tool/plugins/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib/python2.7/site-packages/redhat_support_tool/plugins/find_kerneldebugs.pyo
�
��Tc@s�ddlmZddlmZddlmZmZddlmZm	Z	ddl
mZddlm
Z
ddlmZmZddlmZdd	lZdd	lZd
ZdZejd�Zd
efd��YZd	S(i����(tOption(tdeque(tEmptyValueErrort_(tInteractivePlugintObjectDisplayOption(tcommon(tLaunchHelper(tYumDownloadHelpertNoReposError(tGetKernelDebugPackagesNs!Nigel Jones <nigjones@redhat.com>s%Keith Robertson <kroberts@redhat.com>s,redhat_support_tool.plugins.listkerneldebugstListKernelDebugscBs�eZdZdZdZdZdZdZe	d��Z
e	d��Ze	d��Ze	d��Z
d�Zd�Zd�Zd�Zd	�Zd
�Zdd�ZRS(
tfindkerneldebugscCs
td�S(s�
        The usage statement that will be printed by OptionParser.

        Example:
            - %prog -c CASENUMBER [options] <comment text here>
        Important: %prog is a OptionParser built-in.  Use it!
        s%prog <package name>(R(tcls((sQ/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/find_kerneldebugs.pyt	get_usage,s	cCstd�|jS(s�
        The description statement that will be printed by OptionParser.

        Example:
            - 'Use the '%s' command to add a comment to a case.'             % cls.plugin_name
        s{Use the '%s' command to search and install available debug images.  Wildcards are allowed.  (requires root user privileges)(Rtplugin_name(R
((sQ/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/find_kerneldebugs.pytget_desc7s		cCs td�|j|j|jfS(s
        The epilog string that will be printed by OptionParser.  Usually
        used to print an example of how to use the program.

        Example:
         Examples:
          - %s -c 12345678 Lorem ipsum dolor sit amet, consectetur adipisicing
          - %s -c 12345678
        sPExamples:
  - %s 2.6.32-343.el6
  - %s 2.6.18-128.*
  - %s -t xen 2.6.18-348.el5(RR(R
((sQ/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/find_kerneldebugs.pyt
get_epilogDsc
Cs.tdddddtd�dtd��gS(	sO
        Subclasses that need command line options should override this method
        and return an array of optparse.Option(s) to be used by the
        OptionParser.

        Example:
         return [Option("-f", "--file", action="store",
                        dest="filename", help='Some file'),
                 Option("-c", "--case",
                        action="store", dest="casenumber",
                        help='A case')]

         Would produce the following:
         Command (? for help): help mycommand

         Usage: mycommand [options]

         Use the 'mycommand' command to find a knowledge base solution by ID
         Options:
           -h, --help  show this help message and exit
           -f, --file  Some file
           -c, --case  A case
         Example:
          - mycommand -c 12345 -f abc.txt

        s-ts	--varianttdesttvariantthelps$Select an alternative kernel varianttmetavartVARIANT(RR(R
((sQ/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/find_kerneldebugs.pytget_optionsUscCstd�tj}|js�tj�r�ttd��}t|�j�}|dkrdt	��nt|�j�r�||_q�q�|GHt	|��nt
|j�dkr�t
|j�dkr�|jg|_n|jdrd|jd|jdf|_
nd|jd|_
dS(Ns"ERROR: %s requires a package name.s4Please provide the text to search (or 'q' to exit): tqiRskernel-%s-debuginfo-%sskernel-debuginfo-%s(RRRt_lineRtis_interactivet	raw_inputtstrtstript	Exceptiontlent_argst_optionstyumquery(tselftmsgtline((sQ/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/find_kerneldebugs.pyt
validate_argsus$	
	*
!cCs
td�S(Ns^
Type the number of the kernel debug package to install or 'e' to return to the previous menu.(R(R#((sQ/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/find_kerneldebugs.pytget_intro_text�scCs
td�S(NsSelect a Debug Package: (R(R#((sQ/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/find_kerneldebugs.pytget_prompt_text�scCs|jS(N(t
_submenu_opts(R#((sQ/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/find_kerneldebugs.pytget_sub_menu_options�scCs�t�|_i|_yftj�dkr?ttd���nt�|_|jj	�|jj
|j�|_|js�t
td�|jdj|jj��f��nx�|jD]�}t|d�r�|j}nd|j|j|jf}d}|d|j||jf7}d	|j||jf}i|jd
6|d6}t|d|�}|jj|�||j|<q�WWnrtk
r�}|GH�nXt
k
r�}|GH�n>tk
r�}	td
�|	}
|
GHtjtj|
��nXdS(Nis+This command requires root user privileges.sC%s was not available from any of the following yum repositories: %ss, tevrs%s:%s-%sus%-40s %-20s %-16su
%s-%s (%s)t	yumhelpertpackagetinteractive_actions(ERROR: Unable to get debug packages.  %s(RR)t	_sectionstostgeteuidRRRR,tsetup_repostfind_packageR"tpkgAryRtjointget_repoidsthasattrR+tepochtversiontreleasetnametrepoidRtappendR	tloggertlogtloggingtERROR(R#tpkgtpkgevrtdoctdisp_opt_doct
packed_pkgtdisp_opttnreteveteR$((sQ/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/find_kerneldebugs.pytpostinit�sL	
		"

	cCs�d}|dd	7}x�|jD]~}||j|7}y|jdd�GHWnItk
r�}tjtj|�ddl}|j|j	�d�GHnXd}qWdS(
Nus%-40s %-20s %-16s
tNametVersiont
RepositorysUTF-8treplacei����(RLRMRN(
R)R/tencodeRR>R?R@tWARNINGtsystgetdefaultencoding(R#RDtoptRJRR((sQ/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/find_kerneldebugs.pytnon_interactive_action�scCs2|r%tt�}|jd|�n	t��dS(Nt(RR
trunR(R#tdisplay_optiontlh((sQ/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/find_kerneldebugs.pyR.�sN(t__name__t
__module__RtNoneR4R)R/R,R"tclassmethodRRRRR&R'R(R*RKRUR.(((sQ/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/find_kerneldebugs.pyR$s"
 					,	(toptparseRtcollectionsRt(redhat_support_tool.helpers.confighelperRRtredhat_support_tool.pluginsRRtredhat_support_tool.helpersRt(redhat_support_tool.helpers.launchhelperRt-redhat_support_tool.helpers.yumdownloadhelperRR	t+redhat_support_tool.plugins.get_kerneldebugR
R@R0t
__author__t	getLoggerR>R(((sQ/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/find_kerneldebugs.pyt<module>s

https://t.me/AnonymousX5 - 2025