SHA256
1
0
forked from pool/quilt

- Fix bash completion after the removal of the "remove" command and

the addition of the "revert" command (bnc#330753).

OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/quilt?expand=0&rev=28
This commit is contained in:
Jean Delvare 2010-11-02 17:49:19 +00:00 committed by Git OBS Bridge
parent 0651a2afc8
commit f74114a1cd
3 changed files with 34 additions and 1 deletions

26
completion-revert.patch Normal file
View File

@ -0,0 +1,26 @@
The version of quilt we have currently doesn't have a "remove" command but
it has a "revert" command, so the bash completion should handle that.
---
bash_completion | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- quilt-0.48.orig/bash_completion
+++ quilt-0.48/bash_completion
@@ -97,7 +97,7 @@ _quilt_completion()
# quilt sub commands
cmds='add annotate applied delete diff edit files fold fork graph \
grep header import mail new next patches pop previous push refresh \
- remove rename series setup snapshot top unapplied'
+ revert rename series setup snapshot top unapplied'
# if no command were given, complete on commands
if [[ $COMP_CWORD -eq 1 ]] ; then
@@ -253,7 +253,7 @@ _quilt_completion()
;;
esac
;;
- remove)
+ revert)
case $prev in
-P)
COMPREPLY=( $( compgen -W "$(quilt applied)" -- $cur ) )

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Nov 2 18:47:20 CET 2010 - jdelvare@suse.de
- Fix bash completion after the removal of the "remove" command and
the addition of the "revert" command (bnc#330753).
-------------------------------------------------------------------
Mon Oct 25 15:52:36 CEST 2010 - jdelvare@suse.de

View File

@ -45,6 +45,7 @@ Patch10: inspect-lzma-xz.patch
Patch11: fix-patch-version-detection.patch
Patch12: setup-add-fuzz-parameter.patch
Patch13: setup-support-reverse-patch.patch
Patch14: completion-revert.patch
Url: http://savannah.nongnu.org/projects/quilt
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -64,7 +65,7 @@ Authors:
%prep
%setup -q
%patch -p1 -P 1 -P 2 -P 3 -P 4 -P 5 -P 6 -P 7 -P 8 -P 9 -P 10 -P 11 -P 12 -P 13
%patch -p1 -P 1 -P 2 -P 3 -P 4 -P 5 -P 6 -P 7 -P 8 -P 9 -P 10 -P 11 -P 12 -P 13 -P 14
%build
autoconf