summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaka Kranjc2007-11-14 11:26:09 +0000
committerJaka Kranjc2007-11-14 20:21:17 +0000
commit051b4083843f37fcd9387df57d4226e00a1de1aa (patch)
tree00839ab340d189e1287ef4c72271eb301249b398
parentdf2ba28b3ea8df035cba91d92eb4103480af1f41 (diff)
hal-info: force_depends on older hal versions, needs 0.5.10+ #14079
other part of the bug (cherry picked from commit 2fef37cc35fd8a2d15b80037cc9ddd303c5f102d)
-rwxr-xr-xutils/hal-info/DEPENDS13
-rw-r--r--utils/hal-info/HISTORY3
2 files changed, 15 insertions, 1 deletions
diff --git a/utils/hal-info/DEPENDS b/utils/hal-info/DEPENDS
index 60941eef76..f374ba59c9 100755
--- a/utils/hal-info/DEPENDS
+++ b/utils/hal-info/DEPENDS
@@ -1 +1,12 @@
-optional_depends hal "--enable-killswitch-ipw-wlan" "--disable-killswitch-ipw-wlan" "for WLAN killswitch support"
+optional_depends hal \
+ "--enable-killswitch-ipw-wlan" \
+ "--disable-killswitch-ipw-wlan" \
+ "for WLAN killswitch support" &&
+
+if is_depends_enabled $SPELL hal; then
+ local hal_ver=$(installed_version hal) &&
+ case $hal_ver in
+ 0.5.[02-9]|0.5.[0-9].*|0.[24]*) force_depends hal ;;
+ *) true ;;
+ esac
+fi
diff --git a/utils/hal-info/HISTORY b/utils/hal-info/HISTORY
index 29c52a2f81..859c95ccba 100644
--- a/utils/hal-info/HISTORY
+++ b/utils/hal-info/HISTORY
@@ -1,3 +1,6 @@
+2007-11-14 Jaka Kranjc <lynxlynxlynx@sourcemage.org>
+ * DEPENDS: force_depends on older hal versions, needs 0.5.10+ #14079
+
2007-10-30 Julien "_kaze_" ROZO <julien@rozo.org>
* DEPENDS: added, optionally depends on hal for WLAN killswitch support