classes/base.bbclass: [ftp://ftp.trolltech.com/qt/source/qtopia-core-4.3.0beta.tar...
authorHolger Freyther <zecke@selfish.org>
Sun, 1 Apr 2007 13:20:07 +0000 (13:20 +0000)
committerHolger Freyther <zecke@selfish.org>
Sun, 1 Apr 2007 13:20:07 +0000 (13:20 +0000)
    src_uri as section/groups are unique enough as well. Most of the time
    (almost always) scoping PN (or PN+PV) is not necessary and in this case
    the SRC_URI is good enough. Richard thank you for saying the obvious

classes/base.bbclass

index 880295f..2ea5251 100644 (file)
@@ -32,6 +32,9 @@ def base_chk_file(parser, pn, pv, src_uri, localpath):
     elif parser.has_section(pn_src):
         md5    = parser.get(pn_src, "md5")
         sha256 = parser.get(pn_src, "sha256")
+    elif parser.has_section(src_uri):
+        md5    = parser.get(src_uri, "md5")
+        sha256 = parser.get(src_uri, "sha256")
     else:
         return False
         #raise Exception("Can not find a section for '%s' '%s' and '%s'" % (pn,pv,src_uri))