jhbuild r1783 - in trunk: . jhbuild/frontends



Author: fpeters
Date: Sun Jan  6 21:21:21 2008
New Revision: 1783
URL: http://svn.gnome.org/viewvc/jhbuild?rev=1783&view=rev

Log:
* jhbuild/frontends/terminal.py: fixed xterm title setting when using
quiet mode with progress bar.



Modified:
   trunk/ChangeLog
   trunk/jhbuild/frontends/terminal.py

Modified: trunk/ChangeLog
==============================================================================
--- trunk/ChangeLog	(original)
+++ trunk/ChangeLog	Sun Jan  6 21:21:21 2008
@@ -1,5 +1,10 @@
 2008-01-06  Frederic Peters  <fpeters 0d be>
 
+	* jhbuild/frontends/terminal.py: fixed xterm title setting when using
+	quiet mode with progress bar.
+
+2008-01-06  Frederic Peters  <fpeters 0d be>
+
 	* jhbuild/versioncontrol/svn.py: only check for "Conflict" at the
 	beginning of strings, as "Conflict" could occur in filenames; spotted
 	by John Carr  (closes: #507722).

Modified: trunk/jhbuild/frontends/terminal.py
==============================================================================
--- trunk/jhbuild/frontends/terminal.py	(original)
+++ trunk/jhbuild/frontends/terminal.py	Sun Jan  6 21:21:21 2008
@@ -86,8 +86,8 @@
         if not (self.config.quiet_mode and self.config.progress_bar):
             print '%s*** %s ***%s%s' % (t_bold, msg, progress, t_reset)
         else:
-            progress = 1.0 * (module_num-1) / len(self.modulelist)
-            self.display_status_line(progress, module_num, msg)
+            progress_percent = 1.0 * (module_num-1) / len(self.modulelist)
+            self.display_status_line(progress_percent, module_num, msg)
 
         if is_xterm:
             sys.stdout.write('\033]0;jhbuild: %s%s\007' % (msg, progress))



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]