[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#911425: 'apt policy' bash completion includes source packages (but 'apt-cache policy' doesn't)



Package: apt
Version: 1.7.0
Severity: normal
File: /usr/share/bash-completion/completions/apt

The apt policy bash completion includes source packages, which means it
is completing arguments that do not (yet?) work with it.

The completion for 'apt-cache policy' doesn't have this issue, it only
completes and works with binary package names.

$ apt policy popple
poppler               popplerkit.framework  poppler-utils
poppler-data          poppler-sharp         poppler-utils-dbgsym
$ apt policy poppler
N: Unable to locate package poppler
$ apt policy poppler poppler-data popplerkit.framework poppler-sharp poppler-utils poppler-utils-dbgsym
...
N: Unable to locate package poppler
N: Unable to locate package popplerkit.framework
N: Couldn't find any package by glob 'popplerkit.framework'
N: Couldn't find any package by regex 'popplerkit.framework'
N: Unable to locate package poppler-sharp
$ apt-cache policy popple
poppler-data          poppler-utils         poppler-utils-dbgsym
$ apt-cache policy poppler-

-- System Information:
Debian Release: buster/sid
  APT prefers testing-debug
  APT policy: (900, 'testing-debug'), (900, 'testing'), (800, 'unstable-debug'), (800, 'unstable'), (790, 'buildd-unstable'), (700, 'experimental-debug'), (700, 'experimental'), (690, 'buildd-experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.18.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8), LANGUAGE=en_AU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages apt depends on:
ii  adduser                 3.118
ii  debian-archive-keyring  2017.7
ii  gpgv                    2.2.10-3
ii  libapt-pkg5.0           1.7.0
ii  libc6                   2.27-6
ii  libgcc1                 1:8.2.0-7
ii  libgnutls30             3.5.19-1
ii  libseccomp2             2.3.3-3
ii  libstdc++6              8.2.0-7

Versions of packages apt recommends:
ii  ca-certificates  20170717

Versions of packages apt suggests:
ii  apt-doc         1.7.0
ii  aptitude        0.8.11-3+b1
ii  dpkg-dev        1.19.2
ii  gnupg           2.2.10-3
ii  gnupg1          1.4.23-1
ii  gnupg2          2.2.10-3
ii  powermgmt-base  1.33

-- no debconf information

-- 
bye,
pabs

https://wiki.debian.org/PaulWise

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: