Submit
Path:
~
/
/
lib
/
python2.7
/
site-packages
/
redhat_support_tool
/
plugins
/
File Content:
find_kerneldebugs.pyo
� ��Tc @ s� d d l m Z d d l m Z d d l m Z m Z d d l m Z m Z d d l m Z d d l m Z d d l m Z m Z d d l m Z d d l Z d d l Z d Z d Z e j d � Z d e f d � � YZ d S( i����( t Option( t deque( t EmptyValueErrort _( t InteractivePlugint ObjectDisplayOption( t common( t LaunchHelper( t YumDownloadHelpert NoReposError( t GetKernelDebugPackagesNs! Nigel Jones <nigjones@redhat.com>s% Keith Robertson <kroberts@redhat.com>s, redhat_support_tool.plugins.listkerneldebugst ListKernelDebugsc B s� e Z d Z d Z d Z d Z d Z d Z e d � � Z e d � � Z e d � � Z e d � � Z d � Z d � Z d � Z d � Z d � Z d � Z d d � Z RS( t findkerneldebugsc C s t d � 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 ( t cls( ( sQ /usr/lib/python2.7/site-packages/redhat_support_tool/plugins/find_kerneldebugs.pyt get_usage, s c C s t d � | j S( 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)( R t plugin_name( R ( ( sQ /usr/lib/python2.7/site-packages/redhat_support_tool/plugins/find_kerneldebugs.pyt get_desc7 s c C s t d � | j | j | j f S( 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 sP Examples: - %s 2.6.32-343.el6 - %s 2.6.18-128.* - %s -t xen 2.6.18-348.el5( R R ( R ( ( sQ /usr/lib/python2.7/site-packages/redhat_support_tool/plugins/find_kerneldebugs.pyt get_epilogD s c C s. t d d d d d t d � d t d � �g S( 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 --variantt destt variantt helps$ Select an alternative kernel variantt metavart VARIANT( R R ( R ( ( sQ /usr/lib/python2.7/site-packages/redhat_support_tool/plugins/find_kerneldebugs.pyt get_optionsU s c C s t d � t j } | j s� t j � r� t t d � � } t | � j � } | d k rd t � � n t | � j � r� | | _ q� q� | GHt | � � n t | j � d k r� t | j � d k r� | j g | _ n | j d rd | j d | j d f | _ n d | j d | _ d S( Ns"