diff options
author | Michael 'Mickey' Lauer <mickey@vanille-media.de> | 2004-07-19 15:54:53 +0000 |
---|---|---|
committer | Michael 'Mickey' Lauer <mickey@vanille-media.de> | 2004-07-19 15:54:53 +0000 |
commit | 2e4ed63c1848b9e6d1f9a467c4b9760144ee7563 (patch) | |
tree | 2aaddb6d5bcc0f6b929ab90fa4ca9a21bdf6fb38 /bin | |
parent | 2492ddb5466f0de8edae4205e84786f83bf4a438 (diff) | |
download | bitbake-2e4ed63c1848b9e6d1f9a467c4b9760144ee7563.tar.gz |
slightly improve provider hash progress output
Diffstat (limited to 'bin')
-rw-r--r-- | bin/oemake | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/bin/oemake b/bin/oemake index 66ac2dbc7..5160fffbc 100644 --- a/bin/oemake +++ b/bin/oemake @@ -9,7 +9,7 @@ from oe import make from sets import Set import itertools, optparse -parsespin = itertools.cycle( r'|/-\-' ) +parsespin = itertools.cycle( r'|/-\\' ) __version__ = 1.2 __build_cache_fail = [] @@ -315,25 +315,17 @@ def build_depgraph(): pn_provides = {} def progress(p): - if oedebug: - return + if oedebug or progress.p == p: return + progress.p = p if os.isatty(sys.stdout.fileno()): - sys.stdout.write("\rNOTE: Building provider hash: [") - x = 0 - for i in range(20): - if (p >= x): - sys.stdout.write("#") - else: - sys.stdout.write(" ") - x += 5 - sys.stdout.write("] (%02d%%)" % p) + sys.stdout.write("\rNOTE: Building provider hash: [%s%s] (%02d%%)" % ( "#" * (p/5), " " * ( 20 - p/5 ), p ) ) + sys.stdout.flush() else: if p == 0: - sys.stdout.write("\rNOTE: Building provider hash, please wait...") - sys.stdout.flush() + sys.stdout.write("NOTE: Building provider hash, please wait...\n") if p == 100: - sys.stdout.write("done.") - sys.stdout.flush() + sys.stdout.write("done.\n") + progress.p = 0 def calc_oefile_priority(filename): for (regex, pri) in oefile_config_priorities: |