public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-argcomplete] rawhide: Fix F45FTBFS in rawhide
@ 2026-08-06 12:49 Filipe Rosset
0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-08-06 12:49 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-argcomplete
Branch : rawhide
Commit : 6633157fa9cf7f8f8ca043316098213f1dc70249
Author : Filipe Rosset <rosset.filipe@gmail.com>
Date : 2026-07-27T20:51:32-03:00
Stats : +20/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/python-argcomplete/c/6633157fa9cf7f8f8ca043316098213f1dc70249?branch=rawhide
Log:
Fix F45FTBFS in rawhide
Sent the patch to upstream: https://github.com/kislyuk/argcomplete/pull/557
---
diff --git a/python-argcomplete.spec b/python-argcomplete.spec
index bfb3e37..20fb78a 100644
--- a/python-argcomplete.spec
+++ b/python-argcomplete.spec
@@ -15,12 +15,13 @@ Release: %autorelease
License: Apache-2.0
URL: https://github.com/kislyuk/argcomplete
Source0: %pypi_source argcomplete
+Patch: zsh-global-completion-fix.patch
BuildRequires: python3-devel
%if %{with check}
-BuildRequires: tcsh
BuildRequires: fish
+BuildRequires: tcsh
BuildRequires: zsh
%endif
diff --git a/zsh-global-completion-fix.patch b/zsh-global-completion-fix.patch
new file mode 100644
index 0000000..8979616
--- /dev/null
+++ b/zsh-global-completion-fix.patch
@@ -0,0 +1,18 @@
+--- argcomplete-3.6.3/argcomplete/bash_completion.d/_python-argcomplete.orig 2026-07-27 20:25:34.011670769 -0300
++++ argcomplete-3.6.3/argcomplete/bash_completion.d/_python-argcomplete 2026-07-27 20:25:38.131631021 -0300
+@@ -145,9 +145,13 @@
+ req_argv=( "" "${COMP_WORDS[@]:1}" )
+ __python_argcomplete_expand_tilde_by_ref executable
+ else
+- executable="${words[1]}"
++ # Reconstruct the unshifted words array from BUFFER to handle cases where
++ # a helper completion function (like _python) has shifted the words array.
++ local -a local_words
++ local_words=( ${(z)BUFFER} )
++ executable="${local_words[1]}"
+ __python_argcomplete_expand_tilde_by_ref executable
+- req_argv=( "${words[@]:1}" )
++ req_argv=( "${local_words[@]:1}" )
+ fi
+
+ local ARGCOMPLETE=0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-06 12:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-06 12:49 [rpms/python-argcomplete] rawhide: Fix F45FTBFS in rawhide Filipe Rosset
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox