From f6548e09e868f90ebc3d5a32b38df39044e28c9b Mon Sep 17 00:00:00 2001 From: ianmacd <> Date: Sun, 5 May 2002 15:42:42 +0000 Subject: [PATCH] =?UTF-8?q?-=20=5Fcomp-dpkg-installed-packages():=20return?= =?UTF-8?q?=20list=20of=20installed=20packages,=20rather=20=20=20installab?= =?UTF-8?q?le=20packages=20(patch=20by=20Dr.Rafael=20Sep=C3=BAlveda=20)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bash_completion | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/bash_completion b/bash_completion index 6f6092b1..44db5fda 100644 --- a/bash_completion +++ b/bash_completion @@ -1,6 +1,6 @@ # bash_completion - some programmable completion functions for bash 2.05a # -# $Id: bash_completion,v 1.297 2002/05/04 20:42:31 ianmacd Exp $ +# $Id: bash_completion,v 1.298 2002/05/05 17:42:42 ianmacd Exp $ # # Copyright (C) Ian Macdonald # @@ -2354,16 +2354,16 @@ _cardctl() # This function is required by _dpkg() and _dpkg-reconfigure() # -have dpkg && +have dpkg && { _comp-dpkg-installed-packages() { - grep-dctrl -r -F package -s package,status "^$1" /var/lib/dpkg/status \ - | grep-dctrl -n -F status -s package installed + grep-dctrl -r -P -s package,status "^$1" /var/lib/dpkg/status \ + | grep-dctrl -n -F status -s package 'ok installed' + } # Debian Linux dpkg(8) completion # -have dpkg && _dpkg() { local cur prev @@ -2434,6 +2434,7 @@ _dpkg() --ignore-depends= --abort-after' -- $cur ) ) } [ "$have" ] && complete -F _dpkg $filenames dpkg dpkg-deb +} # Debian Linux dpkg-reconfigure(8) completion #