[update] Implement --update-to repo
Authored by: Grub4K, pukkandan
This commit is contained in:
parent
d2e84d5eb0
commit
665472a7de
4 changed files with 41 additions and 23 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue