public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Kamil Dudka <kdudka@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/curl] curl-v8.23.0-3: make zsh completion work again
Date: Tue, 03 Nov 2026 12:36:43 GMT [thread overview]
Message-ID: <179370940371.1.10928050410237529588.rpms-curl-8eae4647c316@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/curl
Branch : curl-v8.23.0-3
Commit : 8eae4647c316593330fe56022236557df9048b42
Author : Kamil Dudka <kdudka@redhat.com>
Date : 2017-08-15T12:34:08+02:00
Stats : +75/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/curl/c/8eae4647c316593330fe56022236557df9048b42?branch=curl-v8.23.0-3
Log:
make zsh completion work again
---
diff --git a/0001-curl-7.55.1-zsh-completion.patch b/0001-curl-7.55.1-zsh-completion.patch
new file mode 100644
index 0000000..8a37cd4
--- /dev/null
+++ b/0001-curl-7.55.1-zsh-completion.patch
@@ -0,0 +1,67 @@
+From 918eb4c10b60a58ea6b14bea7b9fbfba4d29598c Mon Sep 17 00:00:00 2001
+From: Kamil Dudka <kdudka@redhat.com>
+Date: Mon, 14 Aug 2017 16:13:32 +0200
+Subject: [PATCH] zsh.pl: produce a working completion script again
+
+Commit curl-7_54_0-118-g8b2f22e changed the output format of curl --help
+to use <file> and <dir> instead of FILE and DIR, which caused zsh.pl to
+produce a broken completion script:
+
+% curl --<TAB>
+_curl:10: no such file or directory: seconds
+
+Closes #1779
+
+Upstream-commit: ab2a7079cd2a1ec279b1e6b587ba48e50c155e91
+Signed-off-by: Kamil Dudka <kdudka@redhat.com>
+---
+ docs/cmdline-opts/cacert.d | 2 +-
+ scripts/zsh.pl | 5 +++--
+ src/tool_help.c | 2 +-
+ 3 files changed, 5 insertions(+), 4 deletions(-)
+
+diff --git a/docs/cmdline-opts/cacert.d b/docs/cmdline-opts/cacert.d
+index 04e1139..b2ecf90 100644
+--- a/docs/cmdline-opts/cacert.d
++++ b/docs/cmdline-opts/cacert.d
+@@ -1,5 +1,5 @@
+ Long: cacert
+-Arg: <CA certificate>
++Arg: <file>
+ Help: CA certificate to verify peer against
+ Protocols: TLS
+ ---
+diff --git a/scripts/zsh.pl b/scripts/zsh.pl
+index f0d8c19..82b4d9f 100755
+--- a/scripts/zsh.pl
++++ b/scripts/zsh.pl
+@@ -54,10 +54,11 @@ sub parse_main_opts {
+ $option .= '}' if defined $short;
+ $option .= '\'[' . trim($desc) . ']\'' if defined $desc;
+
+- $option .= ":$arg" if defined $arg;
++ $option .= ":'$arg'" if defined $arg;
+
+ $option .= ':_files'
+- if defined $arg and ($arg eq 'FILE' || $arg eq 'DIR');
++ if defined $arg and ($arg eq '<file>' || $arg eq '<filename>'
++ || $arg eq '<dir>');
+
+ push @list, $option;
+ }
+diff --git a/src/tool_help.c b/src/tool_help.c
+index 42dc779..a5bfaba 100644
+--- a/src/tool_help.c
++++ b/src/tool_help.c
+@@ -54,7 +54,7 @@ static const struct helptxt helptext[] = {
+ "Append to target file when uploading"},
+ {" --basic",
+ "Use HTTP Basic Authentication"},
+- {" --cacert <CA certificate>",
++ {" --cacert <file>",
+ "CA certificate to verify peer against"},
+ {" --capath <dir>",
+ "CA directory to verify peer against"},
+--
+2.9.5
+
diff --git a/curl.spec b/curl.spec
index 78aff99..076a723 100644
--- a/curl.spec
+++ b/curl.spec
@@ -1,11 +1,14 @@
Summary: A utility for getting files from remote servers (FTP, HTTP, and others)
Name: curl
Version: 7.55.1
-Release: 1%{?dist}
+Release: 2%{?dist}
License: MIT
Group: Applications/Internet
Source: https://curl.haxx.se/download/%{name}-%{version}.tar.xz
+# make zsh completion work again
+Patch1: 0001-curl-7.55.1-zsh-completion.patch
+
# patch making libcurl multilib ready
Patch101: 0101-curl-7.32.0-multilib.patch
@@ -149,6 +152,7 @@ be installed.
%setup -q
# upstream patches
+%patch1 -p1
# Fedora patches
%patch101 -p1
@@ -302,6 +306,9 @@ rm -f ${RPM_BUILD_ROOT}%{_libdir}/libcurl.la
%{_libdir}/libcurl.so.[0-9].[0-9].[0-9].minimal
%changelog
+* Tue Aug 15 2017 Kamil Dudka <kdudka@redhat.com> 7.55.1-2
+- make zsh completion work again
+
* Mon Aug 14 2017 Kamil Dudka <kdudka@redhat.com> 7.55.1-1
- new upstream release
next reply other threads:[~2026-11-03 12:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-03 12:36 Kamil Dudka [this message]
2026-11-03 12:37 [rpms/curl] curl-v8.23.0-3: make zsh completion work again Kamil Dudka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179370940371.1.10928050410237529588.rpms-curl-8eae4647c316@fedoraproject.org \
--to=kdudka@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox