about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Completion/BSD/Command/_bsd_pkg6
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 2ecec6f53..544667068 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-08-05  Oliver Kiddle  <opk@zsh.org>
+
+	* Akinori Musha: 17499: Completion/BSD/Command/_bsd_pkg: BSD pkg_*
+	tools now support bzip2'd packages
+
 2002-08-02  Peter Stephenson  <pws@csr.com>
 
 	* Unposted: fix typo in 17496.
diff --git a/Completion/BSD/Command/_bsd_pkg b/Completion/BSD/Command/_bsd_pkg
index c8bd6d6d5..81b187134 100644
--- a/Completion/BSD/Command/_bsd_pkg
+++ b/Completion/BSD/Command/_bsd_pkg
@@ -16,9 +16,9 @@ _bsd_pkg_pkgfiles() {
   pkgsdir=${PACKAGES:-$portsdir/packages}/All
 
   paths=( "${(@)${(@s.:.)PKG_PATH}:#}" )
-  _files "$@" -g \*.tgz && ret=0
-  (( $#path )) && _files "$@" -W paths -g \*.tgz && ret=0
-  compadd "$@" - $pkgsdir/*.tgz && ret=0
+  _files "$@" -g '*.t[bg]z' && ret=0
+  (( $#path )) && _files "$@" -W paths -g '*.t[bg]z' && ret=0
+  compadd "$@" - $pkgsdir/*.t[bg]z && ret=0
 
   return ret
 }