1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-07-02 07:20:37 +02:00

fix test_fill_config_defaults_java for non-amd64 arches

This commit is contained in:
Hans-Christoph Steiner 2023-02-21 11:16:56 +01:00
parent 24df262f6b
commit 5af5ed2759

View File

@ -2357,7 +2357,7 @@ class CommonTest(unittest.TestCase):
fdroidserver.common.fill_config_defaults(config)
java_paths = []
# use presence of javac to make sure its JDK not just JRE
for f in glob.glob('/usr/lib/jvm/java-*-openjdk-amd64/bin/javac'):
for f in glob.glob('/usr/lib/jvm/java-*-openjdk-*/bin/javac'):
jdk = os.path.dirname(os.path.dirname(f))
if not os.path.islink(jdk):
java_paths.append(jdk)