Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-19482

pulpcore-selinux postinstall script runs fixfiles for wrong rpm

XMLWordPrintable

    • None
    • None
    • None
    • None

      Description of problem:
      pulpcore-selinux postinstall script runs fixfiles for wrong rpm - python3-pulpcore
      such rpm doesn't exist. There is only python39-pulpcore (python38-pulpcore for 6.11)

      /sbin/fixfiles -R python3-pulpcore restore || :

      We ship the same pulpcore-selinux rpm into both 6.12 and 6.11 so we cannot just replace python3-pulpcore with python39-pulpcore as this would be still wrong for 6.11

      As fixfiles -R doesn't support globbing we have to do something like this:
      /sbin/fixfiles -R $(rpm -qa python3*-pulpcore) restore || :

      Version-Release number of selected component (if applicable):
      6.12.0
      pulpcore-selinux-1.3.2-1.el8pc

      How reproducible:
      deterministic

      Steps to Reproduce:
      1. Check pulpcore-selinux rpm scripts for wrong "python3-pulpcore"

      1. rpm -q --scripts -p pulpcore-selinux | grep python3-pulpcore
        /sbin/fixfiles -R python3-pulpcore restore || :
        /sbin/fixfiles -R python3-pulpcore restore || :

      Actual results:
      -R python3-pulpcore

      Expected results:
      -R python38-pulpcore (for 6.11)
      -R python39-pulpcore (for 6.12)
      -R $(rpm -qa python3*-pulpcore) (in order to stay universal, one rpm fits both)

              rhn-support-osousa Odilon Sousa
              jira-bugzilla-migration RH Bugzilla Integration
              Lukas Pramuk Lukas Pramuk
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: