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@gentoo.org>
This commit is contained in:
Ionen Wolkens
2021-12-06 16:19:38 -05:00
parent 03d8da4750
commit b82ca335ee
+3 -1
View File
@@ -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() {