[Bug 299912] Re: aptitude install autocompletion sugests packages that are installed/not installable

2009-06-16 Thread karaluh
The bug is about aptitude, not apt-get. Aptitude syntax would be
aptitude reinstall yakuake, so my point is still valid.

-- 
aptitude install autocompletion sugests packages that are installed/not 
installable
https://bugs.launchpad.net/bugs/299912
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 299912] Re: aptitude install autocompletion sugests packages that are installed/not installable

2009-06-16 Thread Markus Edholm
Bah, you're right.. sorry.. it's line 2302 in /etc/bash_completion
then.. but you would have to separate the install command from the
others on the same line (show and others).

-- 
aptitude install autocompletion sugests packages that are installed/not 
installable
https://bugs.launchpad.net/bugs/299912
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 299912] Re: aptitude install autocompletion sugests packages that are installed/not installable

2009-06-15 Thread Markus Edholm
I'm not sure if I would want apt-get install autocompletion to skip installed 
packages.. after all.. 
sudo apt-get install yakuake --reinstall
is a valid command. 

The issue with autocompletion of not installable packages might be because 
apt-cache pkgnames, which is the where the package names come from, lists not 
only installable packages but also package names that it finds in the depends- 
and suggests-fields. It is possible to get rid of some of these not installable 
packages by changing the file
/etc/bash_completion, line 2135 from 
  COMPREPLY=( $( apt-cache pkgnames $cur 2 /dev/null ) )
to
  COMPREPLY=( $( apt-cache pkgnames -o Apt::Cache::Allnames=false $cur 2 
/dev/null ) )

I'm not sure if this change comes with any bad side effects.. I'm using
it on my system right now and I haven't noticed anything bad so far.

(Line numbers and such is taken from my machine running ubuntu 9.04
64bit)

-- 
aptitude install autocompletion sugests packages that are installed/not 
installable
https://bugs.launchpad.net/bugs/299912
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 299912] Re: aptitude install autocompletion sugests packages that are installed/not installable

2008-12-16 Thread Trey Brown
I can confirm this bug with the examples given by Karaluh

** Changed in: bash-completion (Ubuntu)
   Status: New = Confirmed

-- 
aptitude install autocompletion sugests packages that are installed/not 
installable
https://bugs.launchpad.net/bugs/299912
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs