def poolInstall(zp, capstr): # https://github.com/openSUSE/libzypp/blob/master/zypp/Resolver.h # https://github.com/openSUSE/libzypp/blob/master/zypp/Capability.h zp.resolver().addRequire(zypp.Capability(capstr)) if not zp.resolver().resolvePool(): zp.resolver().undo()
def poolUpdate(self, capstr): """ Update capability specified by capstr. :param capstr: Capability to update :type capstr: str """ log.debug("Request: update %s", capstr) self.Z.resolver().addRequire(zypp.Capability(capstr))
def poolInstall(self, capstr): """ Install capability specified by capstr. :param capstr: Capability to install :type capstr: str """ log.debug("Request: install %s", capstr) self.Z.resolver().addRequire(zypp.Capability(capstr))
def poolRemove(self, capstr): """ Remove capability specified by capstr. :param capstr: Capability to remove :type capstr: str """ log.debug("Request: delete %s", capstr) self.Z.resolver().addConflict(zypp.Capability(capstr))
def poolInstall(Z, capstr): print "Request: install %s" % capstr Z.resolver().addRequire(zypp.Capability(capstr))
def poolRemove(Z, capstr): print "Request: delete %s" % capstr Z.resolver().addConflict(zypp.Capability(capstr))