Package: apt-show-versions
Version: 0.22.11
Severity: normal
Tags: patch

Dear Maintainer,

On some systems, when i type

apt-show-versions TAB

I get

'apt-show-versions bash: completion: function _apt_show_versions' not found' 

despite having bash-completion installed. This seems to be because the 
completion snipped is using the deprecated 'have' instead of '_have'

the attached patch fixes this.

-- System Information:
Debian Release: 10.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-9-amd64 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages apt-show-versions depends on:
ii  apt                      1.8.2.1
ii  libapt-pkg-perl          0.1.34+b1
ii  perl [libstorable-perl]  5.28.1-6

apt-show-versions recommends no packages.

apt-show-versions suggests no packages.

-- no debconf information
--- apt-show-versions.orig      2019-02-16 11:10:23.000000000 +0000
+++ apt-show-versions.new       2020-05-30 21:10:26.817007260 +0100
@@ -1,6 +1,6 @@
 #-*-shell-script-*-
 
-have apt-show-versions &&
+_have apt-show-versions &&
 _apt_show_versions()
 {
     local cur prev opts

Reply via email to