Skip to contentSkip to conversation

File checksum regression fix

PATCH New Paul Eggleton 1 participant 2 messages Apr 10, 2014

lore
Share & tools
lore
#0 lore raw

cover File checksum regression fix

The following changes since commit 40027a6e093c3b7480bfaccbd57e0e613d9a7b71:

toaster: Allow toaster to start without pytz (2014-04-09 18:21:40 +0100)

are available in the git repository at:

git://git.yoctoproject.org/poky-contrib paule/checksumfix3
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=paule/checksumfix3

Paul Eggleton (1):
cache: don't trigger reparse on recipes with wildcards in SRC_URI

 lib/bb/cache.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
1.9.0
#1 lore raw

PATCH 1/1 cache: don't trigger reparse on recipes with wildcards in SRC_URI

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.

---
 lib/bb/cache.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/bb/cache.py +1 -1
index 318781b..431fc07 100644
@@ -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)
                         self.remove(fn)
Signature · 1 line
1.9.0