about summary refs log tree commit diff
diff options
context:
space:
mode:
-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)