Skip to content

Commit

Permalink
net-misc/yt-dlp: adjust sed to be safer
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
ionenwks committed Dec 6, 2021
1 parent 03d8da4 commit b82ca33
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion net-misc/yt-dlp/yt-dlp-2021.12.1-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit b82ca33

Please sign in to comment.