mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 21:03:14 -07:00
Add logging for cleanup
This commit is contained in:
parent
70acfc22e7
commit
2fce0e40c3
2 changed files with 3 additions and 2 deletions
|
@ -87,7 +87,7 @@ class CheckVersion(object):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def clean():
|
def clean():
|
||||||
# Clean libs
|
# Clean libs
|
||||||
libs.util.git_clean(
|
result = libs.util.git_clean(
|
||||||
remove_directories=True,
|
remove_directories=True,
|
||||||
force=True,
|
force=True,
|
||||||
ignore_rules=True,
|
ignore_rules=True,
|
||||||
|
@ -96,6 +96,7 @@ class CheckVersion(object):
|
||||||
core.SOURCE_ROOT,
|
core.SOURCE_ROOT,
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
logger.debug(result)
|
||||||
|
|
||||||
|
|
||||||
class UpdateManager(object):
|
class UpdateManager(object):
|
||||||
|
|
|
@ -86,4 +86,4 @@ def git_clean(remove_directories=False, force=False, dry_run=False, interactive=
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
pass
|
pass
|
||||||
command.extend(paths)
|
command.extend(paths)
|
||||||
subprocess.call(command)
|
return subprocess.check_output(command)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue