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()
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()
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()
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()
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()
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, 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()
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()
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()
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()
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()
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()
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()
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()
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)