<commit_before>Subject: Remove autoupdate mechanism

---
 youtube_dl/__init__.py |   8 ++-
 youtube_dl/options.py  |   2 +-
 youtube_dl/update.py   | 187 -------------------------------------------------
 3 files changed, 6 insertions(+), 191 deletions(-)
 delete mode 100644 youtube_dl/update.py

diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py
index ba684a0..298ed7e 100644
Bug: 890119
Forwarded: no
From: <NAME> <<EMAIL>>
Reviewed-by: <NAME> <<EMAIL>>
Last-Update: 2018-02-24
Applied-Upstream: no

--- a/youtube_dl/__init__.py
+++ b/youtube_dl/__init__.py
@@ -36,7 +36,6 @@ from .utils import (
     write_string,
     render_table,
 )
-from .update import update_self
 from .downloader import (
     FileDownloader,
 )
@@ -432,7 +431,10 @@ def _real_main(argv=None):
     with YoutubeDL(ydl_opts) as ydl:
         # Update version
         if opts.update_self:
-            update_self(ydl.to_screen, opts.verbose, ydl._opener)
+            parser.error(
+                "youtube-dl's self-update mechanism is disabled on Debian.\n"
+                "Please update youtube-dl using apt(8)."
+            )
 
         # Remove cache dir
         if opts.rm_cachedir:
@@ -440,7 +442,7 @@ def _real_main(argv=None):
 
         # Maybe do nothing
         if (len(all_urls) < 1) and (opts.load_info_filename is None):<commit_msg>d/p/remove-autoupdate-mechanism.patch: Update patch with metadata at the top.<commit_after>Subject: Remove autoupdate mechanism
Bug: 890119
Forwarded: no
From: <NAME> <<EMAIL>>
Reviewed-by: <NAME> <<EMAIL>>
Last-Update: 2018-03-16
Applied-Upstream: no

---
 youtube_dl/__init__.py |   8 ++-
 youtube_dl/options.py  |   2 +-
 youtube_dl/update.py   | 187 -------------------------------------------------
 3 files changed, 6 insertions(+), 191 deletions(-)
 delete mode 100644 youtube_dl/update.py

diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py
index ba684a0..298ed7e 100644

--- a/youtube_dl/__init__.py
+++ b/youtube_dl/__init__.py
@@ -36,7 +36,6 @@ from .utils import (
     write_string,
     render_table,
 )
-from .update import update_self
 from .downloader import (
     FileDownloader,
 )
@@ -432,7 +431,10 @@ def _real_main(argv=None):
     with YoutubeDL(ydl_opts) as ydl:
         # Update version
         if opts.update_self:
-            update_self(ydl.to_screen, opts.verbose, ydl._opener)
+            parser.error(
+                "youtube-dl's self-update mechanism is disabled on Debian.\n"
+                "Please update youtube-dl using apt(8)."
+            )
 
         # Remove cache dir
         if opts.rm_cachedir:
@@ -440,7 +442,7 @@ def _real_main(argv=None):
 
         # Maybe do nothing
         if (len(all_urls) < 1) and (opts.load_info_filename is None):
{'fraction_non_alphanumeric': 0.15890909090909092, 'fraction_numerical': 0.05018181818181818, 'mean_word_length': 2.3713235294117645, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3741687', 'n_tokens_mistral': 1045, 'n_tokens_neox': 900, 'n_words': 218}