[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-478-g5811d47

Ville Skyttä ville.skytta at iki.fi
Wed Oct 26 16:30:12 UTC 2011


The following commit has been merged in the master branch:
commit 5811d47f0ee8642fd2dc474ea82bd00391b9735b
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Wed Oct 26 19:29:33 2011 +0300

    apt-build, apt-get, aptitude: Load _comp_dpkg_installed_packages on demand.

diff --git a/completions/apt-build b/completions/apt-build
index 2a11f22..dcf4325 100644
--- a/completions/apt-build
+++ b/completions/apt-build
@@ -19,7 +19,8 @@ _apt_build()
                 return 0
                 ;;
             remove)
-                COMPREPLY=( $( _comp_dpkg_installed_packages "$cur" ) )
+                COMPREPLY=( \
+                    $( _xfunc dpkg _comp_dpkg_installed_packages "$cur" ) )
                 return 0
                 ;;
             *)
diff --git a/completions/apt-get b/completions/apt-get
index 25e256a..bbc4330 100644
--- a/completions/apt-get
+++ b/completions/apt-get
@@ -17,7 +17,8 @@ _apt_get()
             remove|autoremove|purge)
                 if [ -f /etc/debian_version ]; then
                     # Debian system
-                    COMPREPLY=( $( _comp_dpkg_installed_packages $cur ) )
+                    COMPREPLY=( $( \
+                        _xfunc dpkg _comp_dpkg_installed_packages $cur ) )
                 else
                     # assume RPM based
                     _xfunc rpm _rpm_installed_packages
diff --git a/completions/aptitude b/completions/aptitude
index b127497..06c3fae 100644
--- a/completions/aptitude
+++ b/completions/aptitude
@@ -45,7 +45,8 @@ _aptitude()
                return 0
                ;;
            purge|remove|reinstall|forbid-version)
-               COMPREPLY=( $( _comp_dpkg_installed_packages "$cur" ) )
+               COMPREPLY=( \
+                   $( _xfunc dpkg _comp_dpkg_installed_packages "$cur" ) )
                return 0
                ;;
            unhold)

-- 
bash-completion



More information about the Bash-completion-commits mailing list