diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2006-10-03 22:45:05 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2006-10-03 22:45:05 +0000 |
commit | 4996ccfe1a8d27f8a4137c9c7877ab7dc95b6a21 (patch) | |
tree | 7d89ee0ddf85a040a32592c065ce481942237864 /bin | |
parent | dd853767e178ea6ac854459ba103ff92637662b3 (diff) | |
download | bitbake-4996ccfe1a8d27f8a4137c9c7877ab7dc95b6a21.tar.gz |
bin/bitbake: Move handle_data() into parse_bbfiles instead of the callback
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/bitbake | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/bin/bitbake b/bin/bitbake index 08a9ed05c..22f7a0749 100755 --- a/bin/bitbake +++ b/bin/bitbake @@ -403,11 +403,8 @@ class BBCooker: self.status.possible_world = None self.status.all_depends = None - def myProgressCallback( self, x, y, f, bb_cache, from_cache ): - # feed the status with new input - - bb_cache.handle_data(f, self.status) - + def myProgressCallback( self, x, y, f, from_cache ): + """Update any tty with the progress change""" if os.isatty(sys.stdout.fileno()): sys.stdout.write("\rNOTE: Handling BitBake files: %s (%04d/%04d) [%2d %%]" % ( parsespin.next(), x, y, x*100/y ) ) sys.stdout.flush() @@ -740,9 +737,11 @@ class BBCooker: # aof = os.path.join(os.path.dirname(f),aof) # files.append(aof) + bb_cache.handle_data(f, self.status) + # now inform the caller if progressCallback is not None: - progressCallback( i + 1, len( filelist ), f, self.bb_cache, fromCache ) + progressCallback( i + 1, len( filelist ), f, fromCache ) except IOError, e: self.bb_cache.remove(f) |