Fix openjdk detection on different architectures

The pattern in Debian is:

java-$VERSION-openjdk-$DEB_HOST_ARCH

The regex for $DEB_HOST_ARCH did not match arm64, armel and armhf. As it
can be any string just match anything.
This commit is contained in:
Jochen Sprickerhof 2023-02-22 11:58:25 +01:00 committed by Hans-Christoph Steiner
parent d5bd2350a2
commit bae94931b4

View file

@ -202,7 +202,7 @@ def _add_java_paths_to_config(pathlist, thisconfig):
r'^java-1\.([126-9][0-9]?)\.0-.*$', # RedHat
r'^java-([126-9][0-9]?)-oracle$', # Debian WebUpd8
r'^jdk-([126-9][0-9]?)-oracle-.*$', # Debian make-jpkg
r'^java-([126-9][0-9]?)-openjdk-[^c][^o][^m].*$', # Debian
r'^java-([126-9][0-9]?)-openjdk-.*$', # Debian
r'^oracle-jdk-bin-1\.([126-9][0-9]?).*$', # Gentoo (oracle)
r'^icedtea-bin-([126-9][0-9]?).*$', # Gentoo (openjdk)
]: