1 |
commit: 05e34ac3f3f95c4affc0654d04cc1f790d6dc454 |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 30 22:59:27 2021 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 30 23:10:21 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05e34ac3 |
7 |
|
8 |
net-misc/yt-dlp: add note about youtube-dl wrapper |
9 |
|
10 |
Mostly to discourage use when not explicitely needed. It may be less |
11 |
tested and, while no plans are known for this, upstream deciding to |
12 |
remove compat options at some point wouldn't be a surprise. Will |
13 |
either way become obsolete when everything is calling yt-dlp directly. |
14 |
|
15 |
Bug: https://bugs.gentoo.org/820842 |
16 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
17 |
|
18 |
net-misc/yt-dlp/yt-dlp-2021.10.22-r2.ebuild | 9 +++++++++ |
19 |
1 file changed, 9 insertions(+) |
20 |
|
21 |
diff --git a/net-misc/yt-dlp/yt-dlp-2021.10.22-r2.ebuild b/net-misc/yt-dlp/yt-dlp-2021.10.22-r2.ebuild |
22 |
index c9b4d7614b7..89adf8ec5b6 100644 |
23 |
--- a/net-misc/yt-dlp/yt-dlp-2021.10.22-r2.ebuild |
24 |
+++ b/net-misc/yt-dlp/yt-dlp-2021.10.22-r2.ebuild |
25 |
@@ -47,3 +47,12 @@ python_install_all() { |
26 |
exec yt-dlp --compat-options youtube-dl "\${@}" |
27 |
EOF |
28 |
} |
29 |
+ |
30 |
+pkg_postinst() { |
31 |
+ if [[ ! ${REPLACING_VERSIONS} ]] || |
32 |
+ ver_test ${REPLACING_VERSIONS} -lt 2021.10.22-r2; then |
33 |
+ elog 'A wrapper using "yt-dlp --compat-options youtube-dl" was installed' |
34 |
+ elog 'as "youtube-dl". This is strictly for compatibility and it is' |
35 |
+ elog 'recommended to use "yt-dlp" directly, it may be removed in the future.' |
36 |
+ fi |
37 |
+} |