Skip to content

Upgrading third-party rpm #1225

Closed Answered by dgilbert101
dgilbert101 asked this question in Q&A
Discussion options

You must be logged in to vote

I was able to find a solution by create a custom actor that would install/upgrade my desired unsigned application.

from leapp.actors import Actor
from leapp.libraries.common.rpms import has_package
from leapp.libraries.stdlib import api
from leapp.models import InstalledRPM, RpmTransactionTasks
from leapp.tags import ChecksPhaseTag, IPUWorkflowTag

PRODUCT_PKGS = ["pkg1", "pkg2", "pkg3"]

class PkgUpgradeCheck(Actor):
    # Checking if pkg is installed.

    name = 'check_pkg'
    consumes = (InstalledRPM,)
    produces = (RpmTransactionTasks,)
    tags = (ChecksPhaseTag, IPUWorkflowTag,)

    def process(self):
        for PACKAGE in PRODUCT_PKGS:
            if has_package(InstalledRPM,…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@dgilbert101
Comment options

Comment options

You must be logged in to vote
1 reply
@pirat89
Comment options

Answer selected by dgilbert101
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants