Ejemplo n.º 1
0
 def __init__(self):
     YumUtilBase.__init__(self, YumBuildDep.NAME, YumBuildDep.VERSION, YumBuildDep.USAGE)
     self.logger = logging.getLogger("yum.verbose.cli.yumbuildep")
     # Add util commandline options to the yum-cli ones
     self.optparser = self.getOptionParser()
     if hasattr(rpm, "reloadConfig"):
         self.optparser.add_option("--target", help="set target architecture for spec parsing")
     self.main()
Ejemplo n.º 2
0
 def __init__(self):
     YumUtilBase.__init__(self, PackageCleanup.NAME, PackageCleanup.VERSION,
                          PackageCleanup.USAGE)
     self.logger = logging.getLogger("yum.verbose.cli.packagecleanup")
     # Add util commandline options to the yum-cli ones
     self.optparser = self.getOptionParser()
     self.optparser_grp = self.getOptionGroup()
     self.addCmdOptions()
     self.main()
Ejemplo n.º 3
0
 def __init__(self):
     YumUtilBase.__init__(self, YumBuildDep.NAME, YumBuildDep.VERSION,
                          YumBuildDep.USAGE)
     self.logger = logging.getLogger("yum.verbose.cli.yumbuildep")
     # Add util commandline options to the yum-cli ones
     self.optparser = self.getOptionParser()
     if hasattr(rpm, 'reloadConfig'):
         self.optparser.add_option(
             "--target", help="set target architecture for spec parsing")
     self.main()
Ejemplo n.º 4
0
 def __init__(self):
     YumUtilBase.__init__(self,
                          PackageCleanup.NAME,
                          PackageCleanup.VERSION,
                          PackageCleanup.USAGE)
     self.logger = logging.getLogger("yum.verbose.cli.packagecleanup")
     # Add util commandline options to the yum-cli ones
     self.optparser = self.getOptionParser()
     self.optparser_grp = self.getOptionGroup()
     self.addCmdOptions()
     self.main()
Ejemplo n.º 5
0
 def __init__(self):
     YumUtilBase.__init__(self,
                          YumDownloader.NAME,
                          YumDownloader.VERSION,
                          YumDownloader.USAGE)
     self.logger = logging.getLogger("yum.verbose.cli.yumdownloader")  
     
     self.localPackages = []
                       
     # Add util commandline options to the yum-cli ones
     self.optparser = self.getOptionParser() 
     self.main()
Ejemplo n.º 6
0
    def __init__(self):
        YumUtilBase.__init__(self, YumDownloader.NAME, YumDownloader.VERSION, YumDownloader.USAGE)
        self.logger = logging.getLogger("yum.verbose.cli.yumdownloader")

        self.localPackages = []

        # Add util commandline options to the yum-cli ones
        self.optparser = self.getOptionParser()
        try:
            self.main()
        except (OSError, IOError), e:
            self.logger.error(exception2msg(e))
            sys.exit(1)
Ejemplo n.º 7
0
    def __init__(self):
        YumUtilBase.__init__(self, YumDownloader.NAME, YumDownloader.VERSION,
                             YumDownloader.USAGE)
        self.logger = logging.getLogger("yum.verbose.cli.yumdownloader")

        self.localPackages = []

        # Add util commandline options to the yum-cli ones
        self.optparser = self.getOptionParser()
        try:
            self.main()
        except (OSError, IOError), e:
            self.logger.error(exception2msg(e))
            sys.exit(1)
 def __init__(self):
     YumUtilBase.__init__(self,
                          YumCompleteTransaction.NAME,
                          YumCompleteTransaction.VERSION,
                          YumCompleteTransaction.USAGE)
     self.logger = logging.getLogger("yum.verbose.cli.yumcompletets")
     # Add util commandline options to the yum-cli ones
     self.optparser = self.getOptionParser()
     if hasattr(self, 'getOptionGroup'):
         self.optparser_grp = self.getOptionGroup()
     else:
         self.optparser_grp = self.optparser
     self.addCmdOptions()
     self.main()
Ejemplo n.º 9
0
 def __init__(self):
     YumUtilBase.__init__(self, YumSafeUpdate.NAME, YumSafeUpdate.VERSION, YumSafeUpdate.USAGE)
     self.logger = logging.getLogger("yum.verbose.cli.safe-update")
     self.good_packages = set()
     self.bad_packages = set()
     self.errors_msgs = {}
     self.opts = None
     self.setup()
     self.check_updates()
     if not self.updates:
         self.logger.info("No available updates")
         return
     self.show_result()
     if not self.opts.check_only:
         self.update_good_packages()
Ejemplo n.º 10
0
    def __init__(self):
        self._checks = {}

        # Register checks
        self.registerCheck(TestCheck())

        # setup the base
        YumUtilBase.__init__(self, RepoCheck.NAME, RepoCheck.VERSION,
                             self._makeUsage())

        self.logger = logging.getLogger("yum.verbose.cli.repo-check")

        # get the parser
        self.optparser = self.getOptionParser()
        self.main()
Ejemplo n.º 11
0
    def __init__(self):
        YumUtilBase.__init__(self,
                             DebugInfoInstall.NAME,
                             DebugInfoInstall.VERSION,
                             DebugInfoInstall.USAGE)
        self.logger = logging.getLogger("yum.verbose.cli.debuginfoinstall")
        self.optparser = self.getOptionParser()
        opts = self.optparser
        # Add util commandline options to the yum-cli ones
        if hasattr(self, 'getOptionGroup'):
            opts = self.getOptionGroup()
        opts.add_option("", "--no-debuginfo-plugin",
                        action="store_true",
                        help="Turn off automatic installation/update of the yum debuginfo plugin")

        self.main()
Ejemplo n.º 12
0
 def __init__(self):
     YumUtilBase.__init__(self, YumCompleteTransaction.NAME,
                          YumCompleteTransaction.VERSION,
                          YumCompleteTransaction.USAGE)
     self.logger = logging.getLogger("yum.verbose.cli.yumcompletets")
     # Add util commandline options to the yum-cli ones
     self.optparser = self.getOptionParser()
     if hasattr(self, 'getOptionGroup'):
         self.optparser_grp = self.getOptionGroup()
     else:
         self.optparser_grp = self.optparser
     self.addCmdOptions()
     try:
         self.main()
     finally:
         self.unlock()
Ejemplo n.º 13
0
 def __init__(self):
     YumUtilBase.__init__(self, YumBuildDep.NAME, YumBuildDep.VERSION,
                          YumBuildDep.USAGE)
     self.logger = logging.getLogger("yum.verbose.cli.yumbuildep")
     # Add util commandline options to the yum-cli ones
     self.optparser = self.getOptionParser()
     if hasattr(rpm, 'reloadConfig'):
         self.optparser.add_option(
             "--target", help="set target architecture for spec parsing")
         self.optparser.add_option(
             "--define",
             action="append",
             default=[],
             metavar="'MACRO EXPR'",
             help="define the rpm MACRO with value EXPR for spec parsing",
         )
     self.main()
Ejemplo n.º 14
0
    def __init__(self):
        self._checks = {}
        
        # Register checks
        self.registerCheck(TestCheck())
        
        # setup the base
        YumUtilBase.__init__(self,
                             RepoCheck.NAME,
                             RepoCheck.VERSION,
                             self._makeUsage())
        

        self.logger = logging.getLogger("yum.verbose.cli.repo-check")  
        
        
        # get the parser
        self.optparser = self.getOptionParser()
        self.main()
Ejemplo n.º 15
0
 def __init__(self):
     YumUtilBase.__init__(self,
                          YumBuildDep.NAME,
                          YumBuildDep.VERSION,
                          YumBuildDep.USAGE)
     self.logger = logging.getLogger("yum.verbose.cli.yumbuildep")                             
     # Add util commandline options to the yum-cli ones
     self.optparser = self.getOptionParser() 
     if hasattr(rpm, 'reloadConfig'):
         self.optparser.add_option("--target",
                           help="set target architecture for spec parsing")
         self.optparser.add_option(
             "--define",
             action="append",
             default=[],
             metavar="'MACRO EXPR'",
             help="define the rpm MACRO with value EXPR for spec parsing",
         )
     self.main()
Ejemplo n.º 16
0
    def __init__(self):
        YumUtilBase.__init__(self, DebugInfoInstall.NAME,
                             DebugInfoInstall.VERSION, DebugInfoInstall.USAGE)
        self.logger = logging.getLogger("yum.verbose.cli.debuginfoinstall")
        self.optparser = self.getOptionParser()
        opts = self.optparser
        # Add util commandline options to the yum-cli ones
        if hasattr(self, 'getOptionGroup'):
            opts = self.getOptionGroup()
        opts.add_option(
            "",
            "--no-debuginfo-plugin",
            action="store_true",
            help=
            "Turn off automatic installation/update of the yum debuginfo plugin"
        )

        self.done = set()
        try:
            self.main()
        except yum.Errors.YumBaseError, e:
            print e
            sys.exit(1)