Package: cowbuilder
Version: 0.73
Severity: normal
Tags: patch

Dear Maintainer,

  The attached patch adds --configfile option to the bash-completion 
  script.

-- System Information:
Debian Release: jessie/sid
  APT prefers trusty-updates
  APT policy: (500, 'trusty-updates'), (500, 'trusty-security'), (500, 
'trusty'), (100, 'trusty-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.13.0-24-generic (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages cowbuilder depends on:
ii  cowdancer  0.73
ii  libc6      2.19-0ubuntu6
ii  pbuilder   0.215ubuntu7

cowbuilder recommends no packages.

cowbuilder suggests no packages.

-- Configuration Files:
/etc/bash_completion.d/cowbuilder changed:
have cowbuilder &&
_cowbuilder()
{
    local initialcommand initialcommand_options cur prev words other_options 
distribution
    COMPREPLY=()
    _get_comp_words_by_ref cur prev words
    initialcommand=${words[1]}
    initialcommand_options='--create --update --build --login --execute'
    other_options='--dumpconfig --distribution --mirror --basepath 
--architecture --configfile'
    distribution='sid sarge etch woody lenny squeeze'
    case $prev in
        --distribution)
            COMPREPLY=( $(compgen -W "$distribution" | grep "^$cur"  ) )
            return 0
            ;;
        --basepath)
            _filedir -d
            return 0
            ;;
        --configfile)
            _filedir
            return 0
            ;;
        *)
            ;;
    esac
    case $initialcommand in
        --build)
            COMPREPLY=( $( compgen -W "$other_options" -- "$cur" )
                        $( compgen -o filenames -G "$cur*.dsc" ) )
            ;;
        --execute)
            COMPREPLY=( $( compgen -W "$other_options" -- "$cur" )
                        $( compgen -o filenames -G "$cur*" ) )
            ;;
        *)
            COMPREPLY=( $( compgen -W "$initialcommand_options $other_options" 
-- "$cur" ) )
            ;;
    esac
    return 0
} &&
complete -F _cowbuilder cowbuilder


-- no debconf information
--- a/bash_completion.cowbuilder	2014-04-16 23:59:12.182898325 +0200
+++ b/bash_completion.cowbuilder	2014-04-16 23:59:30.678990039 +0200
@@ -14,7 +14,7 @@
     _get_comp_words_by_ref cur prev words
     initialcommand=${words[1]}
     initialcommand_options='--create --update --build --login --execute'
-    other_options='--dumpconfig --distribution --mirror --basepath --architecture'
+    other_options='--dumpconfig --distribution --mirror --basepath --architecture --configfile'
     distribution='sid sarge etch woody lenny squeeze'
 
     case $prev in
@@ -26,6 +26,10 @@
 	    _filedir -d
 	    return 0
 	    ;;
+	--configfile)
+	    _filedir
+	    return 0
+	    ;;
 	*)
 	    ;;
     esac

Reply via email to