aboutsummaryrefslogtreecommitdiff
path: root/shells/zsh/files/patch-Completion-BSD-Command-_portsnap
diff options
context:
space:
mode:
Diffstat (limited to 'shells/zsh/files/patch-Completion-BSD-Command-_portsnap')
-rw-r--r--shells/zsh/files/patch-Completion-BSD-Command-_portsnap42
1 files changed, 16 insertions, 26 deletions
diff --git a/shells/zsh/files/patch-Completion-BSD-Command-_portsnap b/shells/zsh/files/patch-Completion-BSD-Command-_portsnap
index cdee103deaac..37eb3f62e0b1 100644
--- a/shells/zsh/files/patch-Completion-BSD-Command-_portsnap
+++ b/shells/zsh/files/patch-Completion-BSD-Command-_portsnap
@@ -1,32 +1,22 @@
---- Completion/BSD/Command/_portsnap.orig 2008-08-12 13:52:12.440350813 +0200
-+++ Completion/BSD/Command/_portsnap 2008-08-07 23:20:31.000000000 +0200
-@@ -0,0 +1,29 @@
-+#compdef portsnap
-+
-+local context state line
-+typeset -A opt_args
-+
-+flags=(
-+ '(cron)fetch[Fetch a compressed snapshot or update existing one]'
-+ '(fetch)cron[Sleep rand(3600) seconds, and then fetch updates]'
-+ '(update)extract[Extract snapshot, replacing existing files and dirs]'
-+ '(extract)update[Update ports tree to match current snapshot]'
-+)
-+
-+_arguments -C -s \
+--- Completion/BSD/Command/_portsnap.orig 2007-07-22 13:40:02.000000000 +0200
++++ Completion/BSD/Command/_portsnap 2008-08-13 19:00:33.920251572 +0200
+@@ -11,13 +11,13 @@
+ )
+
+ _arguments -C -s \
+- '-d:Store working files in workdir:_files -/' \
+- '-f:Read configuration options from conffile:_files' \
+ '-d[Store working files in workdir]:workdir:_files -/' \
+ '-f[Read configuration options from conffile]:conf file:_files' \
-+ '-I[Update INDEX only. (update command only)]' \
+ '-I[Update INDEX only. (update command only)]' \
+- '-k:Trust an RSA key with SHA256 hash of KEY:_files' \
+- '-l:Merge the specified local describes file into the INDEX:_files' \
+- '-p:Location of uncompressed ports tree:_files -/' \
+- '-s:Server from which to fetch updates:_hosts' \
+ '-k[Trust an RSA key with SHA256 hash of KEY]:RSA key:_files' \
+ '-l[Merge the specified local describes file into the INDEX]:file:_files' \
+ '-p[Location of uncompressed ports tree]:uncompressed ports tree:_files -/' \
+ '-s[Server from which to fetch updates]:server:_hosts' \
-+ '*:principal:->principal' && ret=0
-+
-+if [[ $state == principal ]]; then
-+ _alternative \
-+ ':file flag:_values -S " " -w "commands" $flags[@]' \
-+ '*:path:_files -/'
-+fi
-+
-+return ret
+ '*:principal:->principal' && ret=0
+
+ if [[ $state == principal ]]; then