The following commit has been merged in the master branch:
commit a17b2dbc73b2a3c4c487c2f50f5c073c6965f829
Author: Ville Skyttä <[email protected]>
Date: Tue Nov 3 21:58:22 2009 +0200
Don't assume that apt-get, dpkg-deb, and dpkg-reconfigure are available.
diff --git a/test/completion/apt-get.exp b/test/completion/apt-get.exp
index f902096..fbec444 100644
--- a/test/completion/apt-get.exp
+++ b/test/completion/apt-get.exp
@@ -1 +1,3 @@
-source "lib/completions/apt-get.exp"
+if {[assert_bash_type {apt-get}]} {
+ source "lib/completions/apt-get.exp"
+}; # if
diff --git a/test/completion/dpkg-deb.exp b/test/completion/dpkg-deb.exp
index d070ce3..cb27fff 100644
--- a/test/completion/dpkg-deb.exp
+++ b/test/completion/dpkg-deb.exp
@@ -1 +1,3 @@
-source "lib/completions/dpkg-deb.exp"
+if {[assert_bash_type {dpkg-deb}]} {
+ source "lib/completions/dpkg-deb.exp"
+}; # if
diff --git a/test/completion/dpkg-reconfigure.exp
b/test/completion/dpkg-reconfigure.exp
index 68fddbb..f37e0ca 100644
--- a/test/completion/dpkg-reconfigure.exp
+++ b/test/completion/dpkg-reconfigure.exp
@@ -1 +1,3 @@
-source "lib/completions/dpkg-reconfigure.exp"
+if {[assert_bash_type {dpkg-reconfigure}]} {
+ source "lib/completions/dpkg-reconfigure.exp"
+}; # if
--
bash-completion
_______________________________________________
Bash-completion-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/bash-completion-commits