]> code.ossystems Code Review - openembedded-core.git/commitdiff
bitbake: fetcher init - clear data's internal expand cache since the cached SRCREV...
authorRichard Purdie <richard@openedhand.com>
Thu, 8 Nov 2007 10:27:16 +0000 (10:27 +0000)
committerRichard Purdie <richard@openedhand.com>
Thu, 8 Nov 2007 10:27:16 +0000 (10:27 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3104 311d38ba-8fff-0310-9ca6-ca027cbcb966

bitbake/lib/bb/fetch/__init__.py

index 1d41033f544b5dc9222019074132fdfc22749f36..d9dfc7402d08e6d574752b02c764d6dca655ab2a 100644 (file)
@@ -294,6 +294,9 @@ class FetchData(object):
             bb.fetch.srcrev_internal_call = True
             self.localpath = self.method.localpath(self.url, self, d)
             bb.fetch.srcrev_internal_call = False
+            # We have to clear data's internal caches since the cached value of SRCREV is now wrong.
+            # Horrible...
+            bb.data.delVar("ISHOULDNEVEREXIST", d)
         self.md5 = self.localpath + '.md5'
         self.lockfile = self.localpath + '.lock'