public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Filipe Rosset <rosset.filipe@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-argcomplete] rawhide: Fix F45FTBFS in rawhide
Date: Thu, 06 Aug 2026 12:49:22 GMT	[thread overview]
Message-ID: <178602056277.1.17204982936042591524.rpms-python-argcomplete-6633157fa9cf@fedoraproject.org> (raw)

            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

                 reply	other threads:[~2026-08-06 12:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=178602056277.1.17204982936042591524.rpms-python-argcomplete-6633157fa9cf@fedoraproject.org \
    --to=rosset.filipe@gmail.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