[game-data-packager] 01/01: bash completion: make it downgrade/removal safe

Alexandre Detiste detiste-guest at moszumanska.debian.org
Mon Mar 9 19:37:36 UTC 2015


This is an automated email from the git hooks/post-receive script.

detiste-guest pushed a commit to branch master
in repository game-data-packager.

commit 6c0344308b82533e6b7b8024719b7ce54131da92
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date:   Mon Mar 9 20:37:08 2015 +0100

    bash completion: make it downgrade/removal safe
---
 debian/game-data-packager.bash-completion | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/debian/game-data-packager.bash-completion b/debian/game-data-packager.bash-completion
index 58ce057..42af311 100644
--- a/debian/game-data-packager.bash-completion
+++ b/debian/game-data-packager.bash-completion
@@ -14,6 +14,7 @@ _game_data_packager()
       COMPREPLY=( $( compgen -W "$longopts" -- $cur ) )
     elif [ "$prev" == '--package' ]
     then
+      [ -e /usr/share/games/game-data-packager/bash_completion ] || return
       local line packages
       while read line
       do
@@ -27,7 +28,7 @@ _game_data_packager()
     elif [ $COMP_CWORD -eq 1 ]
     then
       local supported
-      supported=$(cd  /usr/share/games/game-data-packager/; ls -1 *.yaml |cut -d'.' -f1)
+      supported=$(cd  /usr/share/games/game-data-packager/; ls -1 *.yaml 2>/dev/null |cut -d'.' -f1)
       COMPREPLY=( $( compgen -W "$supported" -- $cur ) )
     else
       COMPREPLY=()

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/game-data-packager.git



More information about the Pkg-games-commits mailing list