[bitbake-devel,1/1] cache: don't trigger reparse on recipes with wildcards in SRC_URI

Submitted by Paul Eggleton on April 10, 2014, 4:35 p.m. | Patch ID: 70461


Message ID 4fbfa1880e3a5f791d98f54710323f2db9463358.1397147607.git.paul.eggleton@linux.intel.com
State Accepted, archived
Headers show

Commit Message

Paul Eggleton April 10, 2014, 4:35 p.m.
Since we now get wildcards in the file checksum list in the cache, we
need to ignore them when checking to see if they still exist. This
fixes connman-gnome reparsing on every bitbake execution in OE-Core.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
 lib/bb/cache.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/lib/bb/cache.py b/lib/bb/cache.py
index 318781b..431fc07 100644
--- a/lib/bb/cache.py
+++ b/lib/bb/cache.py
@@ -527,7 +527,7 @@  class Cache(object):
         if hasattr(info_array[0], 'file_checksums'):
             for _, fl in info_array[0].file_checksums.items():
                 for f in fl.split():
-                    if not os.path.exists(f):
+                    if not ('*' in f or os.path.exists(f)):
                         logger.debug(2, "Cache: %s's file checksum list file %s was removed",
                                         fn, f)