Uploaded image for project: 'OpenJDK'
  1. OpenJDK
  2. OPENJDK-528

singleton-jdk can sometimes result in leftover directories from other JDKs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • Containers.1.11.GA
    • None
    • container
    • None

      The singleton jdk module loops over the output of `rpm -qa` and invokes `rpm -e --nodeps` once per matching line. If a stray JDK is going to be removed, this happens to remove the -devel package before the -headless (normally -headless would go first because -devel depends on it). The can result in some empty directories remaining in /usr/lib/jvm.

      Rewrite that loop to call `rpm -e --nodeps` once with all the packages to remove so they're in a single transaction.

              jdowland@redhat.com Jonathan Dowland
              jdowland@redhat.com Jonathan Dowland
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: