commit: b82ca335ee8b9af8b4ee367c45b2c9aedd9e95ac
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 6 20:59:39 2021 +0000
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Mon Dec 6 21:19:38 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b82ca335
net-misc/yt-dlp: adjust sed to be safer
Was still thinking of it as being its own line (making s/x// safe)
because of requires.txt. Wasn't a problem but may be in the future.
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
net-misc/yt-dlp/yt-dlp-2021.12.1-r1.ebuild | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/net-misc/yt-dlp/yt-dlp-2021.12.1-r1.ebuild
b/net-misc/yt-dlp/yt-dlp-2021.12.1-r1.ebuild
index 0d4405781215..f6633c012f81 100644
--- a/net-misc/yt-dlp/yt-dlp-2021.12.1-r1.ebuild
+++ b/net-misc/yt-dlp/yt-dlp-2021.12.1-r1.ebuild
@@ -24,7 +24,9 @@ python_prepare_all() {
distutils-r1_python_prepare_all
# adjust requires for pycryptodome and optional dependencies (bug
#828466)
- sed -ri "/'pycryptodomex'/s/x//;s/'(mutagen|websockets)',?//g" setup.py
|| die
+ sed -ri setup.py \
+ -e "s/'(pycryptodome)x'/'\1'/" \
+ -e "s/'(mutagen|websockets)',?//g" || die
}
python_test() {