summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2021-10-30 18:59:27 -0400
committerIonen Wolkens <ionen@gentoo.org>2021-10-30 19:10:21 -0400
commit05e34ac3f3f95c4affc0654d04cc1f790d6dc454 (patch)
tree7542bd63c5b75081d9961be9aeeceed76e511172
parentx11-base/xorg-server: Drop old versions (diff)
downloadgentoo-05e34ac3.tar.gz
gentoo-05e34ac3.tar.bz2
gentoo-05e34ac3.zip
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@gentoo.org>
-rw-r--r--net-misc/yt-dlp/yt-dlp-2021.10.22-r2.ebuild9
1 files changed, 9 insertions, 0 deletions
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
+}