From 115514b5eb6d02060a5b54192ca5f22ac434422e Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Sat, 9 Oct 2010 17:24:16 +0100 Subject: bitbake/fetch: Ensure SRCREV is still set correctly if the pn-X override has been expanded Signed-off-by: Richard Purdie --- bitbake/lib/bb/fetch/__init__.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bitbake/lib/bb') diff --git a/bitbake/lib/bb/fetch/__init__.py b/bitbake/lib/bb/fetch/__init__.py index 156b815569..55ffdb84c9 100644 --- a/bitbake/lib/bb/fetch/__init__.py +++ b/bitbake/lib/bb/fetch/__init__.py @@ -648,6 +648,8 @@ class Fetch(object): rev = data.getVar("SRCREV_%s_pn-%s" % (ud.parm['name'], pn), d, 1) if not rev: rev = data.getVar("SRCREV_pn-%s_%s" % (pn, ud.parm['name']), d, 1) + if not rev: + rev = data.getVar("SRCREV_%s" % (ud.parm['name']), d, 1) if not rev: rev = data.getVar("SRCREV", d, 1) if rev == "INVALID": -- cgit v1.2.3