From 05e34ac3f3f95c4affc0654d04cc1f790d6dc454 Mon Sep 17 00:00:00 2001 From: Ionen Wolkens Date: Sat, 30 Oct 2021 18:59:27 -0400 Subject: 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 --- 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 c9b4d7614b7f..89adf8ec5b64 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 +} -- cgit v1.2.3-65-gdbad