* Tweak the auto-update features of youtube-dl.
* Add infrastructure to enable tests after build time.
Courtesy of @unit193.
debhelper-compat (= 12),
dh-exec,
dh-python,
+ flake8 <!nocheck>,
pandoc,
+ python3-nose <!nocheck>,
python3-pkg-resources,
python3-setuptools,
zip
youtube_dl/options.py | 2 +-
2 files changed, 7 insertions(+), 2 deletions(-)
+--- a/README.md
++++ a/README.md
+@@ -53,9 +53,6 @@
+ # OPTIONS
+ -h, --help Print this help text and exit
+ --version Print program version and exit
+- -U, --update Update this program to latest version. Make
+- sure that you have sufficient permissions
+- (run with sudo if needed)
+ -i, --ignore-errors Continue on download errors, for example to
+ skip unavailable videos in a playlist
+ --abort-on-error Abort downloading of further videos (in the
--- a/youtube_dl/__init__.py
+++ b/youtube_dl/__init__.py
-@@ -441,7 +441,12 @@
+@@ -36,7 +36,6 @@
+ write_string,
+ render_table,
+ )
+-from .update import update_self
+ from .downloader import (
+ FileDownloader,
+ )
+@@ -441,7 +440,12 @@
with YoutubeDL(ydl_opts) as ydl:
# Update version
if opts.update_self:
--- /dev/null
+Description: Disable remaining tests that require internet.
+Author: Unit 193 <unit193@ubuntu.com>
+
+---
+ Makefile | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+--- a/Makefile
++++ b/Makefile
+@@ -49,7 +49,10 @@
+ --exclude test_subtitles.py \
+ --exclude test_write_annotations.py \
+ --exclude test_youtube_lists.py \
+- --exclude test_youtube_signature.py
++ --exclude test_youtube_signature.py \
++ --exclude test_downloader_http.py \
++ --exclude test_InfoExtractor.py \
++ --exclude test_http.py
+
+ tar: youtube-dl.tar.gz
+
skip_support_file_installation.patch
disable-autoupdate-mechanism.patch
+disable_more_online_tests.patch
override_dh_auto_configure:
PREFIX=/usr SYSCONFDIR=/etc make
- mv Makefile Makefile.inactive
rm youtube-dl
override_dh_clean:
- test -f Makefile || mv Makefile.inactive Makefile
make clean
dh_clean
override_dh_auto_test:
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+ make offlinetest PYTHON=python3
+endif