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