Bastian Kleineidam <[EMAIL PROTECTED]> changelogged:
>      - fixes bash-completion script
>        (Closes: #309076)

It's not quite a wateright fix; if I don't notice the "Suggests:
python2.4-optcomplete", or don't realise why it's needed, I'll still
get the same errors.  I would therefore like to suggest a slightly
more robust version: 



--- linkchecker-completion      2005-05-02 13:14:50.000000000 +0100
+++ linkchecker 2005-08-01 00:34:52.000000000 +0100
@@ -1,4 +1,5 @@
 # install this file into /etc/bash_completion.d/linkchecker on a
 # Debian Linux System
 
-complete -F _optcomplete linkchecker
+[ -r /etc/bash_completion.d/optcomplete ] &&
+ complete -F _optcomplete linkchecker



(That file existence check's a bit messy... but the sourcing happens
in alphabetical order, so tests for _optcomplete() won't help.
There are also issues with different possible sets of packages being
installed and then removed-but-unpurged.  Anyway, if you don't like
it, don't use it.) 

Oh, and note the filenames; my revised version obeys the
instructions in the first two lines of the file!
-- 
JBR
Ankh kak! (Ancient Egyptian blessing)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to