mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 21:33:13 -07:00
Add cleanup after update
This commit is contained in:
parent
a92a578dd4
commit
00bbf8fa16
1 changed files with 4 additions and 1 deletions
|
@ -13,6 +13,7 @@ import stat
|
|||
import traceback
|
||||
import gh_api as github
|
||||
|
||||
import cleanup
|
||||
import core
|
||||
from core import logger
|
||||
|
||||
|
@ -79,7 +80,9 @@ class CheckVersion(object):
|
|||
|
||||
def update(self):
|
||||
if self.updater.need_update():
|
||||
return self.updater.update()
|
||||
result = self.updater.update()
|
||||
cleanup.clean('core', 'libs')
|
||||
return result
|
||||
|
||||
|
||||
class UpdateManager(object):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue