Beispiel #1
0
 def __init__(self, logger):
     ExternPackager.__init__(self, logger)
     self.command = None
     if sysutils.which('dnf') is not None:
         self.command = 'dnf'
     elif sysutils.which('yum') is not None:
         self.command = 'yum'
Beispiel #2
0
 def __init__(self, logger):
     ExternPackager.__init__(self, logger)
     self.cmd = detect_pip_exe()
     if self.cmd:
         self.log.debug("Using pip executable: %s", self.cmd)
     else:
         self.log.debug(" pip executable not found.")
Beispiel #3
0
 def __init__(self, logger):
     ExternPackager.__init__(self, logger)
     self.command = None
     if sysutils.which('dnf') is not None:
         self.command = 'dnf'
     elif sysutils.which('yum') is not None:
         self.command = 'yum'
Beispiel #4
0
 def __init__(self, logger):
     ExternPackager.__init__(self, logger)
     self.command = None
     if sysutils.which('zypper') is not None:
         self.command = 'zypper'
     if sysutils.which('rpm') is not None:
         self.fastcommand = 'rpm'
     else:
         self.fastcommand = None
Beispiel #5
0
 def __init__(self, logger):
     ExternPackager.__init__(self, logger)
     self.command = None
     if sysutils.which('zypper') is not None:
         self.command = 'zypper'
     if sysutils.which('rpm') is not None:
         self.fastcommand = 'rpm'
     else:
         self.fastcommand = None
Beispiel #6
0
 def __init__(self, logger):
     ExternPackager.__init__(self, logger)
     self.available = False
     try:
         from _emerge import search
         from _emerge import actions
         from _emerge.actions import load_emerge_config
         self.portage = __import__('portage')
         self.re = __import__('re')
         emerge_config = load_emerge_config()
         self.root_config = emerge_config.running_config
         # search init args:
         # (self,root_config,spinner,searchdesc,verbose,usepkg,usepkgconly,search_index=True)
         self.search = search.search(self.root_config,False,False,False,True,False)
         self.search._vardb.cp_all()
         self.available = True
     except ImportError :
         self.available = False
Beispiel #7
0
 def __init__(self, logger):
     ExternPackager.__init__(self, logger)
     self.available = False
     try:
         from _emerge import search
         from _emerge import actions
         from _emerge.actions import load_emerge_config
         self.portage = __import__('portage')
         self.re = __import__('re')
         emerge_config = load_emerge_config()
         self.root_config = emerge_config.running_config
         # search init args:
         # (self,root_config,spinner,searchdesc,verbose,usepkg,usepkgconly,search_index=True)
         self.search = search.search(self.root_config,False,False,False,True,False)
         self.search._vardb.cp_all()
         self.available = True
     except ImportError :
         self.available = False
Beispiel #8
0
    def __init__(self, logger):
        ExternPackager.__init__(self, logger)
        if sysutils.which('apt') is not None:
            self.getcmd = 'apt'
            self.searchcmd = 'apt'
        else:
            self.getcmd = 'apt'
            self.searchcmd = 'apt-cache'

        try:
            import apt
            self.cache = apt.Cache()
        except (ImportError, AttributeError):
            # ImportError is caused by apt being completely missing
            # AttributeError is caused by us importing ourselves (we have no
            #   Cache() method) because python-apt is missing and we got a
            #   relative import instead
            self.log.info("Install python-apt to speed up apt processing.")
            self.cache = None
Beispiel #9
0
    def __init__(self, logger):
        ExternPackager.__init__(self, logger)
        if sysutils.which('apt') is not None:
            self.getcmd = 'apt'
            self.searchcmd = 'apt'
        else:
            self.getcmd = 'apt'
            self.searchcmd = 'apt-cache'

        try:
            import apt
            self.cache = apt.Cache()
        except (ImportError, AttributeError):
            # ImportError is caused by apt being completely missing
            # AttributeError is caused by us importing ourselves (we have no
            #   Cache() method) because python-apt is missing and we got a
            #   relative import instead
            self.log.info("Install python-apt to speed up apt processing.")
            self.cache = None
Beispiel #10
0
    def __init__(self, logger):
        ExternPackager.__init__(self, logger)
        # if sysutils.which('apt') is not None:
        if False: # To re-enable apt, replace this line with the one above (also need to change something further down)
            self.getcmd = 'apt'
            self.searchcmd = 'apt'
        else:
            self.getcmd = 'apt-get'
            self.searchcmd = 'apt-cache'

        try:
            import apt
            self.cache = apt.Cache()
        except (ImportError, AttributeError):
            # ImportError is caused by apt being completely missing
            # AttributeError is caused by us importing ourselves (we have no
            #   Cache() method) because python-apt is missing and we got a
            #   relative import instead
            self.log.info("Install python-apt to speed up apt processing.")
            self.cache = None
Beispiel #11
0
    def __init__(self, logger):
        ExternPackager.__init__(self, logger)
        # if sysutils.which('apt') is not None:
        if False: # To re-enable apt, replace this line with the one above (also need to change something further down)
            self.getcmd = 'apt'
            self.searchcmd = 'apt'
        else:
            self.getcmd = 'apt-get'
            self.searchcmd = 'apt-cache'

        try:
            import apt
            self.cache = apt.Cache()
        except (ImportError, AttributeError):
            # ImportError is caused by apt being completely missing
            # AttributeError is caused by us importing ourselves (we have no
            #   Cache() method) because python-apt is missing and we got a
            #   relative import instead
            self.log.info("Install python-apt to speed up apt processing.")
            self.cache = None
Beispiel #12
0
 def __init__(self, logger):
     ExternPackager.__init__(self, logger)
Beispiel #13
0
 def __init__(self, logger):
     ExternPackager.__init__(self, logger)
     self.command = None
     if sysutils.which('pacman') is not None:
         self.command = 'pacman'
Beispiel #14
0
 def __init__(self, logger):
     ExternPackager.__init__(self, logger)
Beispiel #15
0
 def __init__(self, logger):
     ExternPackager.__init__(self, logger)
     self.command = None
     if sysutils.which('pacman') is not None:
         self.command = 'pacman'
Beispiel #16
0
 def __init__(self, logger):
     ExternPackager.__init__(self, logger)
     self.cmd = detect_pip_exe()
     assert self.cmd
     self.log.debug("Using pip executable: %s", self.cmd)