bitbake/lib/bb/make.py:
authorHolger Hans Peter Freyther <zecke@selfish.org>
Sun, 22 May 2005 19:44:39 +0000 (19:44 +0000)
committerHolger Hans Peter Freyther <zecke@selfish.org>
Sun, 22 May 2005 19:44:39 +0000 (19:44 +0000)
        Pass more data to the parsing progressCallBack.
        We will soon use this data to eliminate the long
        delay before building.

bitbake/bin/bitbake:
        Just change the signature of the callback method for now.
        We will soon keep the 'parsing status' in a instance
        we will fill while parsing and only evaluate in build_depgraph

bin/bitbake
lib/bb/make.py

index f9142c4..4055603 100755 (executable)
@@ -539,7 +539,7 @@ def build_depgraph():
         if terminal:
             __world_target.add(pn)
 
-def myProgressCallback( x, y, f ):
+def myProgressCallback( x, y, f, file_data, from_cache ):
     if bbdebug > 0:
         return
     if os.isatty(sys.stdout.fileno()):
index f7235f4..424569d 100644 (file)
@@ -154,7 +154,6 @@ def collect_bbfiles( progressCallback ):
               bb.debug(1, "bbmake: skipping %s" % f)
               masked += 1
               continue
-        progressCallback( i + 1, len( newfiles ), f )
         debug(1, "bbmake: parsing %s" % f)
 
         # read a file's metadata
@@ -177,6 +176,9 @@ def collect_bbfiles( progressCallback ):
                     if data.getVarFlag(var, "handler", bb_data) and data.getVar(var, bb_data):
                         event.register(data.getVar(var, bb_data))
                 pkgdata[f] = bb_data
+
+            # now inform the caller
+            progressCallback( i + 1, len( newfiles ), f, bb_data, fromCache )
         except IOError, e:
             bb.error("opening %s: %s" % (f, e))
             pass