[Bash-completion-commits] [SCM] debian-package branch, master, updated. debian/1.3-1-32-g653f34e

David Paleino dapal at debian.org
Tue Apr 12 10:44:16 UTC 2011


The following commit has been merged in the master branch:
commit d6448263b88ff7f80eb15736e1a52612167eef97
Author: David Paleino <dapal at debian.org>
Date:   Sun Apr 10 10:41:15 2011 +0200

    Improve APT hook

diff --git a/debian/extra/update-bash-completion b/debian/extra/update-bash-completion
index 28d402e..3bf528d 100755
--- a/debian/extra/update-bash-completion
+++ b/debian/extra/update-bash-completion
@@ -1,7 +1,5 @@
 #!/bin/bash
 
-echo "UPDATING!"
-
 GET_COMP=/usr/share/bash-completion/get-completions
 COMPDICT=/usr/share/bash-completion/compdict
 COMPDIR=/usr/share/bash-completion
@@ -22,6 +20,8 @@ elif [ "$1" == "clean" ]; then
 fi
 
 
+echo -n "bash-completion: updating completions... "
 for c in $($GET_COMP $COMPDICT | sort -u); do
     ln -sf $COMPDIR/$c $RUNCOMPDIR/
 done
+echo "done."
diff --git a/debian/postinst b/debian/postinst
index 5282090..91cea2c 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -4,13 +4,6 @@ set -e
 
 case "$1" in
     configure)
-        [ -x /usr/sbin/update-bash-completion ] && echo OK!!!
-
-        # Populate with completions based on available commands
-        rm -rf /etc/bash_completion.d/triggered/*
-        for c in $(/usr/share/bash-completion/get-completions /usr/share/bash-completion/compdict | sort -u); do
-            ln -sf /usr/share/bash-completion/$c /etc/bash_completion.d/triggered/
-        done
         # let's remove old bash-completion conffiles
         for f in $(find /etc/bash_completion.d/ -type f -name "*.dpkg-*"); do
             dpkg-maintscript-helper rm_conffile ${f%.dpkg-*} 1:1.3-1 -- "$@"

-- 
debian-package



More information about the Bash-completion-commits mailing list