[bitbake-devel] [PATCH 1/1] wget.py: use BPN when parsing upstream directory paths

Alexander Kanavin alexander.kanavin at linux.intel.com
Thu Sep 3 15:37:07 UTC 2015


PN in this context may contain bogus suffixes like -native etc.

Signed-off-by: Alexander Kanavin <alexander.kanavin at linux.intel.com>
---
 bitbake/lib/bb/fetch2/wget.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bitbake/lib/bb/fetch2/wget.py b/bitbake/lib/bb/fetch2/wget.py
index bd2a897..d32f5d0 100644
--- a/bitbake/lib/bb/fetch2/wget.py
+++ b/bitbake/lib/bb/fetch2/wget.py
@@ -521,11 +521,11 @@ class Wget(FetchMethod):
             path = ud.path.split(package)[0]
 
             # search for version matches on folders inside the path, like:
-            # "5.7" in http://download.gnome.org/sources/${PN}/5.7/${PN}-${PV}.tar.gz
+            # "5.7" in http://download.gnome.org/sources/${BPN}/5.7/${BPN}-${PV}.tar.gz
             dirver_regex = re.compile("(?P<dirver>[^/]*(\d+\.)*\d+([-_]r\d+)*)/")
             m = dirver_regex.search(path)
             if m:
-                pn = d.getVar('PN', True)
+                pn = d.getVar('BPN', True)
                 dirver = m.group('dirver')
 
                 dirver_pn_regex = re.compile("%s\d?" % (re.escape(pn)))
-- 
2.1.4




More information about the bitbake-devel mailing list