mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 05:43:16 -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 traceback
|
||||||
import gh_api as github
|
import gh_api as github
|
||||||
|
|
||||||
|
import cleanup
|
||||||
import core
|
import core
|
||||||
from core import logger
|
from core import logger
|
||||||
|
|
||||||
|
@ -79,7 +80,9 @@ class CheckVersion(object):
|
||||||
|
|
||||||
def update(self):
|
def update(self):
|
||||||
if self.updater.need_update():
|
if self.updater.need_update():
|
||||||
return self.updater.update()
|
result = self.updater.update()
|
||||||
|
cleanup.clean('core', 'libs')
|
||||||
|
return result
|
||||||
|
|
||||||
|
|
||||||
class UpdateManager(object):
|
class UpdateManager(object):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue