[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 5b54c41de55300fb7c28b435b0e7a595ab1cd7d9

Ville Skyttä ville.skytta at iki.fi
Tue Nov 3 20:49:30 UTC 2009


The following commit has been merged in the master branch:
commit a17b2dbc73b2a3c4c487c2f50f5c073c6965f829
Author: Ville Skyttä <ville.skytta at iki.fi>
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



More information about the Bash-completion-commits mailing list