[update] Implement --update-to repo

Authored by: Grub4K, pukkandan
This commit is contained in:
Simon Sawicki
2023-05-20 21:21:32 +02:00
parent d2e84d5eb0
commit 665472a7de
4 changed files with 41 additions and 23 deletions

View File

@@ -939,7 +939,7 @@ def _real_main(argv=None):
ydl.cache.remove()
try:
updater = Updater(ydl, opts.update_self if isinstance(opts.update_self, str) else None)
updater = Updater(ydl, opts.update_self)
if opts.update_self and updater.update() and actual_use:
if updater.cmd:
return updater.restart()