Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 youtube-dl (2020.05.08-1.0antix1) unstable; urgency=medium
 .
   * new upstream release
Author: anticapitalista <antix@operamail.com>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: 2020-05-14

--- youtube-dl-2020.05.08.orig/Makefile
+++ youtube-dl-2020.05.08/Makefile
@@ -30,10 +30,7 @@ install: youtube-dl youtube-dl.1 youtube
 	install -m 644 youtube-dl.fish $(DESTDIR)$(SYSCONFDIR)/fish/completions/youtube-dl.fish
 
 codetest:
-	flake8 \
-		--exclude=.svn,CVS,.bzr,.hg,.git,__pycache__,.tox,.eggs,*.egg,.pc,.pybuild \
-		--ignore=E121,E123,E126,E226,E24,E704,E402,E501,E731,E741,W503,W504,N802,N803,N806,N816,F401,F821,E302,E305,N801,N815,E265,N813,F403,F405 \
-		.
+	flake8 .
 
 test:
 	#nosetests --with-coverage --cover-package=youtube_dl --cover-html --verbose --processes 4 test
@@ -52,10 +49,7 @@ offlinetest: codetest
 		--exclude test_subtitles.py \
 		--exclude test_write_annotations.py \
 		--exclude test_youtube_lists.py \
-		--exclude test_youtube_signature.py \
-		--exclude test_downloader_http.py \
-		--exclude test_InfoExtractor.py \
-		--exclude test_http.py
+		--exclude test_youtube_signature.py
 
 tar: youtube-dl.tar.gz
 
--- youtube-dl-2020.05.08.orig/README.md
+++ youtube-dl-2020.05.08/README.md
@@ -53,6 +53,9 @@ Alternatively, refer to the [developer i
 # 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
--- youtube-dl-2020.05.08.orig/setup.py
+++ youtube-dl-2020.05.08/setup.py
@@ -58,7 +58,12 @@ py2exe_params = {
 if len(sys.argv) >= 2 and sys.argv[1] == 'py2exe':
     params = py2exe_params
 else:
-    files_spec = []
+    files_spec = [
+        ('etc/bash_completion.d', ['youtube-dl.bash-completion']),
+        ('etc/fish/completions', ['youtube-dl.fish']),
+        ('share/doc/youtube_dl', ['README.txt']),
+        ('share/man/man1', ['youtube-dl.1'])
+    ]
     root = os.path.dirname(os.path.abspath(__file__))
     data_files = []
     for dirname, files in files_spec:
--- youtube-dl-2020.05.08.orig/youtube_dl/__init__.py
+++ youtube-dl-2020.05.08/youtube_dl/__init__.py
@@ -36,6 +36,7 @@ from .utils import (
     write_string,
     render_table,
 )
+from .update import update_self
 from .downloader import (
     FileDownloader,
 )
@@ -440,12 +441,7 @@ def _real_main(argv=None):
     with YoutubeDL(ydl_opts) as ydl:
         # Update version
         if opts.update_self:
-            parser.error(
-                "youtube-dl's self-update mechanism is disabled on Debian.\n"
-                "Please update youtube-dl using apt(8).\n"
-                "See https://packages.debian.org/sid/youtube-dl for the "
-                "latest packaged version.\n"
-            )
+            update_self(ydl.to_screen, opts.verbose, ydl._opener)
 
         # Remove cache dir
         if opts.rm_cachedir:
--- youtube-dl-2020.05.08.orig/youtube_dl/options.py
+++ youtube-dl-2020.05.08/youtube_dl/options.py
@@ -140,7 +140,7 @@ def parseOpts(overrideArguments=None):
     general.add_option(
         '-U', '--update',
         action='store_true', dest='update_self',
-        help=optparse.SUPPRESS_HELP)
+        help='Update this program to latest version. Make sure that you have sufficient permissions (run with sudo if needed)')
     general.add_option(
         '-i', '--ignore-errors',
         action='store_true', dest='ignoreerrors', default=False,
