svk doesn't include upstream Bash completions

Bug #32312 reported by Scott Bronson
8
Affects Status Importance Assigned to Milestone
svk (Ubuntu)
Fix Released
Low
MOTU Reviewers Team

Bug Description

This patch puts the completion scripts included with svk into the proper locations: it adds
/usr/bin/svk-completion.pl and /etc/bash_completion.d/svk so that bash completion will just work.

I've verified that it uninstalls properly and passes lintian.

Related branches

Revision history for this message
Scott Bronson (bronson) wrote : The patch to add Bash completion

This patch adds Bash completion to svk.

If you just want to add completion to the svk package on your running Ubuntu system, follow these commands:

$ cd /tmp
$ sudo apt-get build-dep svk
$ sudo apt-get install dpkg-buildpackage fakeroot devscripts
$ apt-get source svk
$ cd svk-1.06
$ patch -p0 < ../completion.patch
$ debuild -us -uc # arguments tell debuild not to sign the package
$ sudo dpkg -i ../svk_1.06-1_all.deb

Now, open a new terminal and start bouncing on the tab key.

Revision history for this message
Luis Mondesi (lemsx1) wrote :

brilliant!

Revision history for this message
Zak B. Elep (zakame) wrote :

Thanks for the patch! =)

Changed in svk:
assignee: nobody → motureviewers
status: Unconfirmed → In Progress
Revision history for this message
Scott Bronson (bronson) wrote :

svk 1.06-1 includes /etc/bash_completion.d/svk. Excellent!

Problem is, it does not include /usr/bin/svk-completions.pl (found in svk-1.06/contrib) so, whenever the user hits the tab key, Bash complains that svk-completions.pl could not be found.

Workaround for anyone who is currently experiencing this bug: just grab a copy of svk-completions.pl from the svk sources:
    $ cd /tmp
    $ apt-get source svk
    $ sudo cp svk-1.06/contrib/svk-completion.pl /usr/bin

Revision history for this message
Barry deFreese (bddebian) wrote :

Uploaded. Keep an aye on it and close as fixed released if applicable. Thanks for your contribution!

Changed in svk:
status: In Progress → Fix Committed
William Grant (wgrant)
Changed in svk:
status: Fix Committed → Fix Released
Revision history for this message
LimCore (limcore) wrote :

I just upgraded to ubuntu 9.04 and I still have this problems.

$ svk up ./bash: /usr/bin/svk-completion.pl: No such file or directory

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.