about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2000-06-05 02:23:52 +0000
committerBart Schaefer <barts@users.sourceforge.net>2000-06-05 02:23:52 +0000
commitd1813a007f2343402d1de883403278f91da1ab53 (patch)
treed0180d0cd4c9e21c9e8a56eecfaf7413ee32854b
parentb8440550d7cfce176e1656da67fd36e25f6c9999 (diff)
downloadzsh-d1813a007f2343402d1de883403278f91da1ab53.tar.gz
zsh-d1813a007f2343402d1de883403278f91da1ab53.tar.xz
zsh-d1813a007f2343402d1de883403278f91da1ab53.zip
11743: Complete http URLs for rpm package files.
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Linux/_rpm4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index b54a29b10..0ffdc0e85 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-06-04  Bart Schaefer  <schaefer@zsh.org>
+
+	* 11743: Completion/Linux/_rpm: Complete http as well as ftp URLs
+	in the package_file state.
+
 2000-06-04  Chmouel Boudjnah  <chmouel@mandrakesoft.com>
 
 	* 11740: Completion/Linux/_rpm: --{rebuild,recompile} is always
diff --git a/Completion/Linux/_rpm b/Completion/Linux/_rpm
index 83ad3b6e1..344f5269b 100644
--- a/Completion/Linux/_rpm
+++ b/Completion/Linux/_rpm
@@ -211,12 +211,12 @@ while [[ -n "$state" ]]; do
         _files -g \*.spec && ret=0
     ;;
   package_file)
-    if compset -P ftp://; then
+    if compset -P '(f|ht)tp://'; then
       _hosts -S/ && ret=0
     else
       _alternative \
           'files:RPM package file:_files -g \*.\(\#i\)rpm' \
-          'prefixes:ftp URL prefix:compadd ftp://' && ret=0
+          'prefixes:URL prefix:compadd ftp:// http://' && ret=0
     fi
     ;;
   package_src)