From fcb497b637d88160da8828b5597143e8979402d0 Mon Sep 17 00:00:00 2001 From: Tully Foote Date: Tue, 11 May 2010 17:01:44 +0000 Subject: [PATCH] making rosmake print narrower for brian's 80 character terminal #2398 --- tools/rosmake/src/rosmake/parallel_build.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/rosmake/src/rosmake/parallel_build.py b/tools/rosmake/src/rosmake/parallel_build.py index ee970a96..aca4b474 100644 --- a/tools/rosmake/src/rosmake/parallel_build.py +++ b/tools/rosmake/src/rosmake/parallel_build.py @@ -131,10 +131,10 @@ class CompileThread(threading.Thread): #self.rosmakeall.print_all("[ Building package [%s] %d of %d]"%( pkg, build_count, total_pkgs)); if self.argument: - spaces = 50 - len(pkg) - len(self.argument) + spaces = max(1, 30 - len(pkg) - len(self.argument)) self.rosmakeall.print_all (">>> %s >>> [ make %s ]%s[ %d of %d ]"%(pkg, self.argument, ' '*spaces, build_count, total_pkgs), thread_name=self.name) else: - spaces = 50 - len(pkg) + spaces = max(1, 30 - len(pkg)) self.rosmakeall.print_all (">>> %s >>> [ make ]%s[ %d of %d ]"%(pkg, ' '*spaces, build_count, total_pkgs), thread_name=self.name) (result, result_string) = self.rosmakeall.build(pkg, self.argument, self.build_queue.robust_build)