From 2fce0e40c3a757054af14d4ffd35bc3c5226ccf7 Mon Sep 17 00:00:00 2001 From: Labrys of Knossos Date: Wed, 19 Dec 2018 19:40:13 -0500 Subject: [PATCH] Add logging for cleanup --- core/version_check.py | 3 ++- libs/util.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core/version_check.py b/core/version_check.py index 37445d16..b24c9a17 100644 --- a/core/version_check.py +++ b/core/version_check.py @@ -87,7 +87,7 @@ class CheckVersion(object): @staticmethod def clean(): # Clean libs - libs.util.git_clean( + result = libs.util.git_clean( remove_directories=True, force=True, ignore_rules=True, @@ -96,6 +96,7 @@ class CheckVersion(object): core.SOURCE_ROOT, ], ) + logger.debug(result) class UpdateManager(object): diff --git a/libs/util.py b/libs/util.py index c0281715..cde820f2 100644 --- a/libs/util.py +++ b/libs/util.py @@ -86,4 +86,4 @@ def git_clean(remove_directories=False, force=False, dry_run=False, interactive= except AttributeError: pass command.extend(paths) - subprocess.call(command) + return subprocess.check_output(command)