www/yt-dlp: Update 2021.05.20 -> 2021.06.01

Reported by:	portscout
This commit is contained in:
Yuri Victorovich 2021-06-02 00:28:10 -07:00
commit ce0187f613

View file

@ -1,5 +1,5 @@
PORTNAME= yt-dlp
DISTVERSION= 2021.05.20
DISTVERSION= 2021.06.01
CATEGORIES= www
MAINTAINER= yuri@FreeBSD.org
@ -8,6 +8,8 @@ COMMENT= Command-line program for downloading videos from various platforms
LICENSE= UNLICENSE
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pycryptodome>0:security/py-pycryptodome@${PY_FLAVOR}
USES= gmake python shebangfix
SHEBANG_GLOB= devscripts/*.py

View file

@ -1,3 +1,3 @@
TIMESTAMP = 1621529609
SHA256 (yt-dlp-yt-dlp-2021.05.20_GH0.tar.gz) = b1def2006482deb07005f3b9c61e571e8a7e780adc12e764ab042c97d0d821b4
SIZE (yt-dlp-yt-dlp-2021.05.20_GH0.tar.gz) = 1631042
TIMESTAMP = 1622618435
SHA256 (yt-dlp-yt-dlp-2021.06.01_GH0.tar.gz) = 37992c9116901a6213e3157a6119d2af41d396483bd5260bf377acc80550ddef
SIZE (yt-dlp-yt-dlp-2021.06.01_GH0.tar.gz) = 1647481

View file

@ -1,21 +1,13 @@
--- yt_dlp/__init__.py.orig 2021-03-18 03:08:48 UTC
--- yt_dlp/__init__.py.orig 2021-06-01 14:59:03 UTC
+++ yt_dlp/__init__.py
@@ -38,7 +38,6 @@ from .utils import (
std_headers,
write_string,
)
-from .update import update_self
from .downloader import (
FileDownloader,
)
@@ -580,17 +579,9 @@ def _real_main(argv=None):
@@ -660,17 +660,9 @@ def _real_main(argv=None):
if opts.rm_cachedir:
ydl.cache.remove()
- # Update version
- if opts.update_self:
- # If updater returns True, exit. Required for windows
- if update_self(ydl.to_screen, opts.verbose, ydl._opener):
- if run_update(ydl):
- if actual_use:
- sys.exit('ERROR: The program must exit for the update to complete')
- sys.exit()