[devscripts] 01/01: debsign: Fix bash completion.

Mattia Rizzolo mattia at debian.org
Sun Oct 1 22:03:24 UTC 2017


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

mattia pushed a commit to branch stretch
in repository devscripts.

commit f010d21c4611b3818fa0d36d88170701cf85d741
Author: Cyril Brulebois <kibi at debian.org>
Date:   Sun Oct 1 21:10:26 2017 +0200

    debsign: Fix bash completion.
    
    Use file extensions instead of globs.
    
    Closes: #877440
    Signed-off-by: Mattia Rizzolo <mattia at debian.org>
---
 debian/changelog                | 4 ++++
 scripts/debsign.bash_completion | 8 ++++----
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index f36fbce..e3418b0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,10 @@ devscripts (2.17.6+deb9u2) UNRELEASED; urgency=medium
   * uscan:
     + Fix the new package version regex for filenamemangle.  Closes: #869150
 
+  [ Cyril Brulebois ]
+  * debsign: Fix bash completion by using file extensions instead of
+    using globs.  Closes: #877440
+
  -- Mattia Rizzolo <mattia at debian.org>  Sat, 30 Sep 2017 22:19:56 +0200
 
 devscripts (2.17.6+deb9u1) stretch; urgency=medium
diff --git a/scripts/debsign.bash_completion b/scripts/debsign.bash_completion
index 7d396f9..2cee44d 100644
--- a/scripts/debsign.bash_completion
+++ b/scripts/debsign.bash_completion
@@ -19,10 +19,10 @@ _debsign()
             ;;
         *)
             COMPREPLY=( $(
-                    compgen -G "${cur}*.changes"
-                    compgen -G "${cur}*.buildinfo"
-                    compgen -G "${cur}*.dsc"
-                    compgen -G "${cur}*.commands"
+                    compgen -f -X "!*.changes"   -- "$cur"
+                    compgen -f -X "!*.buildinfo" -- "$cur"
+                    compgen -f -X "!*.dsc"       -- "$cur"
+                    compgen -f -X "!*.commands"  -- "$cur"
                     compgen -W "$options" | grep "^$cur"
                 ) )
             ;;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/devscripts.git



More information about the devscripts-devel mailing list