mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 05:13:16 -07:00
Merge branch 'release-11.7' into nightly
# Conflicts: # changelog.txt # core/versionCheck.py # nzbToMedia.py
This commit is contained in:
commit
d1edf9f2a2
6 changed files with 104 additions and 43 deletions
|
@ -13,6 +13,7 @@ import traceback
|
|||
|
||||
from six.moves.urllib.request import urlretrieve
|
||||
|
||||
import cleanup
|
||||
import core
|
||||
from core import github_api as github, logger
|
||||
import libs.util
|
||||
|
@ -81,23 +82,9 @@ class CheckVersion(object):
|
|||
def update(self):
|
||||
if self.updater.need_update():
|
||||
result = self.updater.update()
|
||||
self.clean()
|
||||
cleanup.clean('core', 'libs')
|
||||
return result
|
||||
|
||||
@staticmethod
|
||||
def clean():
|
||||
# Clean libs
|
||||
result = libs.util.git_clean(
|
||||
remove_directories=True,
|
||||
force=True,
|
||||
ignore_rules=True,
|
||||
paths=[
|
||||
libs.LIB_ROOT,
|
||||
core.SOURCE_ROOT,
|
||||
],
|
||||
)
|
||||
logger.debug(result)
|
||||
|
||||
|
||||
class UpdateManager(object):
|
||||
def get_github_repo_user(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue