Debian Bug report logs - #842228
bash-completion: complete package versions with apt-get install

Package: apt; Maintainer for apt is APT Development Team <deity@lists.debian.org>; Source for apt is src:apt (PTS, buildd, popcon).

Reported by: Jerome Reybert <jreybert@gmail.com>

Date: Sat, 3 Sep 2011 13:00:01 UTC

Severity: wishlist

Tags: patch

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#640217; Package bash-completion. (Sat, 03 Sep 2011 13:00:04 GMT) (full text, mbox, link).


Acknowledgement sent to Jerome Reybert <jreybert@gmail.com>:
New Bug report received and forwarded. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>. (Sat, 03 Sep 2011 13:00:05 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Jerome Reybert <jreybert@gmail.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: bash-completion: complete package versions with apt-get install
Date: Sat, 03 Sep 2011 15:01:34 +0200
[Message part 1 (text/plain, inline)]
Package: bash-completion
Version: 1:1.3-1
Severity: wishlist
Tags: patch

apt-get provides a way to install a given package version:
 $ apt-get install package=version

But bash-completion does not handle the completion for these versions. So, if
you do not know the exact version string of your package, you must search it
through apt-cache policy or apt-cache showpkg in a first time.

This patch provides the following behaviour:
 $ apt-get install package=<tab>
will propose the existing versions for package.

It currently relies on apt-cache showpkg syntax, which is quite verbose. Maybe
it would be safer to rely on apt-cache policy, or if you know any other way to
get neat list of package versions.

Jérôme



-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (750, 'testing'), (700, 'stable'), (600, 'unstable'), (550, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.0.0-1-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages bash-completion depends on:
ii  bash                          4.1-3      The GNU Bourne Again SHell

bash-completion recommends no packages.

bash-completion suggests no packages.

-- no debconf information
[apt.diff (text/plain, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#640217; Package bash-completion. (Wed, 26 Oct 2016 23:03:03 GMT) (full text, mbox, link).


Acknowledgement sent to Jeremy Bicha <jbicha@ubuntu.com>:
Extra info received and forwarded to list. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>. (Wed, 26 Oct 2016 23:03:03 GMT) (full text, mbox, link).


Message #10 received at 640217@bugs.debian.org (full text, mbox, reply):

From: Jeremy Bicha <jbicha@ubuntu.com>
To: 640217@bugs.debian.org, Jerome Reybert <jreybert@gmail.com>
Subject: Re: bash-completion: complete package versions with apt-get install
Date: Wed, 26 Oct 2016 19:01:10 -0400
Control: reassign -1 apt 1.3.1

I'm reassigning this to apt since apt itself provides the bash
completions as of apt 1.3~exp2.

Thanks,
Jeremy Bicha



Bug reassigned from package 'bash-completion' to 'apt'. Request was from Jeremy Bicha <jbicha@ubuntu.com> to 640217-submit@bugs.debian.org. (Wed, 26 Oct 2016 23:03:03 GMT) (full text, mbox, link).


No longer marked as found in versions bash-completion/1:1.3-1. Request was from Jeremy Bicha <jbicha@ubuntu.com> to 640217-submit@bugs.debian.org. (Wed, 26 Oct 2016 23:03:04 GMT) (full text, mbox, link).


Marked as found in versions apt/1.3.1. Request was from Jeremy Bicha <jbicha@ubuntu.com> to 640217-submit@bugs.debian.org. (Wed, 26 Oct 2016 23:03:04 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>:
Bug#640217; Package apt. (Thu, 27 Oct 2016 06:30:03 GMT) (full text, mbox, link).


Acknowledgement sent to Julian Andres Klode <jak@debian.org>:
Extra info received and forwarded to list. Copy sent to APT Development Team <deity@lists.debian.org>. (Thu, 27 Oct 2016 06:30:03 GMT) (full text, mbox, link).


Message #21 received at 640217@bugs.debian.org (full text, mbox, reply):

From: Julian Andres Klode <jak@debian.org>
To: Jeremy Bicha <jbicha@ubuntu.com>, 640217@bugs.debian.org
Subject: Re: Bug#640217: bash-completion: complete package versions with apt-get install
Date: Thu, 27 Oct 2016 08:27:49 +0200
Control: reassign -1 bash-completion
Control: clone -1 -2
Control: reassign -2 apt

On Wed, Oct 26, 2016 at 07:01:10PM -0400, Jeremy Bicha wrote:
> Control: reassign -1 apt 1.3.1
> 
> I'm reassigning this to apt since apt itself provides the bash
> completions as of apt 1.3~exp2.

No no, we only provide the 'apt' bash completion, not any other
command - because there was basically no reaction from anyone
responsible for bash completions to the inclusion request.

That said, we could probably take them over, but currently,
this needs to be fixed in both apt-get and apt completions,
which means both packages.

-- 
Debian Developer - deb.li/jak | jak-linux.org - free software dev

When replying, only quote what is necessary, and write each reply
directly below the part(s) it pertains to ('inline').  Thank you.



Bug reassigned from package 'apt' to 'bash-completion'. Request was from Julian Andres Klode <jak@debian.org> to 640217-submit@bugs.debian.org. (Thu, 27 Oct 2016 06:30:03 GMT) (full text, mbox, link).


No longer marked as found in versions apt/1.3.1. Request was from Julian Andres Klode <jak@debian.org> to 640217-submit@bugs.debian.org. (Thu, 27 Oct 2016 06:30:03 GMT) (full text, mbox, link).


Bug 640217 cloned as bug 842228 Request was from Julian Andres Klode <jak@debian.org> to 640217-submit@bugs.debian.org. (Thu, 27 Oct 2016 06:30:04 GMT) (full text, mbox, link).


Bug reassigned from package 'bash-completion' to 'apt'. Request was from Julian Andres Klode <jak@debian.org> to 640217-submit@bugs.debian.org. (Thu, 27 Oct 2016 06:30:04 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>:
Bug#842228; Package apt. (Thu, 27 Oct 2016 13:33:06 GMT) (full text, mbox, link).


Acknowledgement sent to Jeremy Bicha <jbicha@ubuntu.com>:
Extra info received and forwarded to list. Copy sent to APT Development Team <deity@lists.debian.org>. (Thu, 27 Oct 2016 13:33:06 GMT) (full text, mbox, link).


Message #34 received at 842228@bugs.debian.org (full text, mbox, reply):

From: Jeremy Bicha <jbicha@ubuntu.com>
To: Julian Andres Klode <jak@debian.org>, 640217@bugs.debian.org, 842228@bugs.debian.org
Subject: Re: Bug#640217: bash-completion: complete package versions with apt-get install
Date: Thu, 27 Oct 2016 09:31:30 -0400
On Thu, Oct 27, 2016 at 2:27 AM, Julian Andres Klode <jak@debian.org> wrote:
> That said, we could probably take them over, but currently,
> this needs to be fixed in both apt-get and apt completions,
> which means both packages.

Yes, I had been thinking about filing a separate bug to move those
completions to the apt source.

Jeremy



Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 09:45:50 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.