commit:     3baa5f49c4ee322996ab5f70f14137d303edf707
Author:     Sean Vig <sean.v.775 <AT> gmail <DOT> com>
AuthorDate: Fri Aug  4 00:18:51 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Aug  9 20:43:23 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3baa5f49

x11-wm/qtile: Fix Python syntax on replaced code

When not building with `pulseaudio` use flag, the `sed` replacement will insert 
code that `throw`'s an exception, rather than the correct syntax to `raise` the 
exception. Fix this typo.

Signed-off-by: Sean Vig <sean.v.775 <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/32164
Signed-off-by: Sam James <sam <AT> gentoo.org>

 x11-wm/qtile/qtile-9999.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/x11-wm/qtile/qtile-9999.ebuild b/x11-wm/qtile/qtile-9999.ebuild
index 03829958fd7f..d1bf02722c9a 100644
--- a/x11-wm/qtile/qtile-9999.ebuild
+++ b/x11-wm/qtile/qtile-9999.ebuild
@@ -62,7 +62,7 @@ distutils_enable_tests pytest
 python_prepare_all() {
        # Avoid automagic dependency on libpulse
        if ! use pulseaudio ; then
-               sed -i -e 's/call("libpulse", "--libs")/throw PkgConfigError/' 
setup.py || die
+               sed -i -e 's/call("libpulse", "--libs")/raise PkgConfigError/' 
setup.py || die
        fi
 
        # Avoid automagic dependency on pywlroots

Reply via email to