CVS: src/si/extras entitycheck.py,1.32,1.33
Mats Wichmann <[email protected]>
| Newsgroups | gmane.linux.lsb.implementation |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/lsb/src/si/extras
In directory sc8-pr-cvs1:/tmp/cvs-serv18480/si/extras
Modified Files:
entitycheck.py
Log Message:
Limit download output to 79-character lines so it won't wrap
Index: entitycheck.py
===================================================================
RCS file: /cvsroot/lsb/src/si/extras/entitycheck.py,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -r1.32 -r1.33
*** entitycheck.py 26 Mar 2003 15:00:57 -0000 1.32
--- entitycheck.py 27 Mar 2003 19:17:31 -0000 1.33
***************
*** 81,86 ****
"""Print running output of (front, message) using \b and \r tricks."""
output = "%s %s" % (self.front, self.message)
! padding = " " * (80 - len(output))
! print "%s%s%s\r" % ("\b" * (len(self.front) + 1), output, padding),
def feedback(self, block_count, block_size, total):
--- 81,89 ----
"""Print running output of (front, message) using \b and \r tricks."""
output = "%s %s" % (self.front, self.message)
! if len(output) > 79:
! print "%s%.*s\r" % ("\b" * (len(self.front) + 1), 79, output),
! else:
! padding = " " * (79 - len(output))
! print "%s%s%s\r" % ("\b" * (len(self.front) + 1), output, padding),
def feedback(self, block_count, block_size, total):
***************
*** 111,115 ****
"""
self.message = "not found"
! self.front = "%s ->" % self.file
for loc in locations:
if self.name != loc.name: continue
--- 114,118 ----
"""
self.message = "not found"
! self.front = "%s:" % self.file
for loc in locations:
if self.name != loc.name: continue