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()
Example #2
0
    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))
Example #3
0
    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))
Example #4
0
    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))