summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--remote/includes/qt.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/remote/includes/qt.inc b/remote/includes/qt.inc
index f0e3f3e6..2b13c1f3 100644
--- a/remote/includes/qt.inc
+++ b/remote/includes/qt.inc
@@ -12,7 +12,8 @@ activate_qt() {
[[ "$(basename "$QT_DEFAULT")" =~ ^qt$QT_VERSION.*\.conf$ ]] || perror "Something with QT4 is bad. Check '/usr/share/qtchooser'"
else
# no default active, try to set it
- local QT_CANDIDATES="$(ls "/usr/share/qtchooser" | grep -v "default.conf" | grep "qt$QT_VERSION")"
+ local QT_CANDIDATES="$(find "/usr/share/qtchooser" -name "qt$QT_VERSION*" | grep -E "$ARCHREGEX")"
+ [ -z "$QT_CANDIDATES" ] && QT_CANDIDATES="$(find "/usr/share/qtchooser" -name "qt$QT_VERSION*")"
local QTS="$(echo "$QT_CANDIDATES" | wc -w)"
if [ "$QTS" -eq 1 ]; then
# we found it, lets activate it and hope for the best