From 15d36ece5c0b905769f015343de4ed3afc7a9553 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Wed, 11 Sep 2019 20:34:01 +0200 Subject: improve debug output of Allocator.build --- src/allocator.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/allocator.py b/src/allocator.py index 4243609..41d66c7 100644 --- a/src/allocator.py +++ b/src/allocator.py @@ -144,6 +144,7 @@ class Allocator: build_needed = not os.path.isdir(self.dir) buildtimestamp_path = os.path.join(self.dir, ".buildtime") + print_info2(f"Building {self.name}...") if not build_needed: print_info2("Old build found. Comparing build time with mtime") @@ -158,7 +159,7 @@ class Allocator: print_debug("Time of last build:", timestamp.isoformat()) print_debug("Last modification of allocators file:", modtime.isoformat()) - print_info2("Build needed:", build_needed) + print_info2("" if build_needed else "No " + "build needed") if build_needed: if self.sources: -- cgit v1.2.3