[oe-commits] [bitbake] 05/07: fetch2: Make SRC_URI[md5sum] and SRC_URI[sha256sum] expand their values

git at git.openembedded.org git at git.openembedded.org
Wed Mar 9 22:46:17 UTC 2016


rpurdie pushed a commit to branch master
in repository bitbake.

commit ba011470df0ea8bd89f01c0b02ec4b3969e60ce7
Author: Peter Kjellerstedt <peter.kjellerstedt at axis.com>
AuthorDate: Wed Mar 9 00:53:58 2016 +0100

    fetch2: Make SRC_URI[md5sum] and SRC_URI[sha256sum] expand their values
    
    For some reason, the values for SRC_URI[md5sum] and SRC_URI[sha256sum]
    were not being expanded. That lead to the following code not working
    as expected:
    
    SRC_URI = "http://.../${PN}-${PV}.tar.gz"
    
    MD5SUM = "123abc..."
    SHA256SUM = "abcd1234..."
    
    SRC_URI[md5sum] = "${MD5SUM}"
    SRC_URI[sha256sum] = "${SHA256SUM}"
    
    Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt at axis.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/fetch2/__init__.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py
index e8d3af7..f86014c 100644
--- a/lib/bb/fetch2/__init__.py
+++ b/lib/bb/fetch2/__init__.py
@@ -1153,13 +1153,13 @@ class FetchData(object):
         elif self.type not in ["http", "https", "ftp", "ftps", "sftp"]:
             self.md5_expected = None
         else:
-            self.md5_expected = d.getVarFlag("SRC_URI", self.md5_name, False)
+            self.md5_expected = d.getVarFlag("SRC_URI", self.md5_name, True)
         if self.sha256_name in self.parm:
             self.sha256_expected = self.parm[self.sha256_name]
         elif self.type not in ["http", "https", "ftp", "ftps", "sftp"]:
             self.sha256_expected = None
         else:
-            self.sha256_expected = d.getVarFlag("SRC_URI", self.sha256_name, False)
+            self.sha256_expected = d.getVarFlag("SRC_URI", self.sha256_name, True)
         self.ignore_checksums = False
 
         self.names = self.parm.get("name",'default').split(',')

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list