summaryrefslogtreecommitdiff
path: root/community/schroot/colon-completion.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/schroot/colon-completion.patch')
-rw-r--r--community/schroot/colon-completion.patch32
1 files changed, 7 insertions, 25 deletions
diff --git a/community/schroot/colon-completion.patch b/community/schroot/colon-completion.patch
index 5cd8f8996..2df1bd16e 100644
--- a/community/schroot/colon-completion.patch
+++ b/community/schroot/colon-completion.patch
@@ -1,22 +1,7 @@
-From 1563e1ba9bc2b317390ef305ae9af56a4b976940 Mon Sep 17 00:00:00 2001
-From: Peter Wu <lekensteyn@gmail.com>
-Date: Sat, 22 Dec 2012 16:37:00 +0100
-Subject: [PATCH] etc: make bash completion work for colon values
-
---chroot (and -c) accept values like chroot:foo and session:foo-abc. Standard
-bash completion treats colons as whitespace, hence we need a way to force that
-off.
-
-Fix based on http://stackoverflow.com/q/10528695/427545 (thanks Radu Gasler!)
----
- etc/bash_completion/schroot | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/etc/bash_completion/schroot b/etc/bash_completion/schroot
-index 035f0b3..7cda29b 100644
---- a/etc/bash_completion/schroot
-+++ b/etc/bash_completion/schroot
-@@ -21,14 +21,14 @@ _schroot()
+diff -wbBur schroot-1.6.5.org/etc/bash_completion/schroot schroot-1.6.5/etc/bash_completion/schroot
+--- schroot-1.6.5.org/etc/bash_completion/schroot 2013-01-28 15:28:04.000000000 +0400
++++ schroot-1.6.5/etc/bash_completion/schroot 2013-01-28 15:30:22.297213632 +0400
+@@ -21,14 +21,14 @@
local cur prev options
COMPREPLY=()
@@ -28,11 +13,8 @@ index 035f0b3..7cda29b 100644
options=$(schroot --help | sed 's/\(^\|[[:space:]]\)[^[:space:]-][^[:space:]]*//g')
if [ "$prev" = "-c" ] || [ "$prev" = "--chroot" ]; then
- COMPREPLY=( $(compgen -W "$(schroot -a -l)" -- $cur) )
-+ __ltrim_colon_completions "$cur"
+ COMPREPLY=( $(compgen -W "$(schroot -a -l)" -- $cur) )
++ __ltrim_colon_completions "$cur"
else
- COMPREPLY=( $(compgen -W "$options" -- $cur) )
+ COMPREPLY=( $(compgen -W "$options" -- $cur) )
fi
---
-1.8.0.2
-