diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-10-09 17:24:16 +0100 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2010-12-29 16:28:19 -0700 |
commit | 683894e3a9be25b060e60be900a5bc1271d450d2 (patch) | |
tree | f37b94090c3a275fb063b508d916179eda7ff8c7 /lib/bb/fetch | |
parent | 2b9cd8c4d882e5857c71583433a22f45e242de36 (diff) | |
download | bitbake-683894e3a9be25b060e60be900a5bc1271d450d2.tar.gz |
fetch: Ensure SRCREV is still set correctly if the pn-X override has been expanded
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'lib/bb/fetch')
-rw-r--r-- | lib/bb/fetch/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bb/fetch/__init__.py b/lib/bb/fetch/__init__.py index e5191fa86..aa16fb927 100644 --- a/lib/bb/fetch/__init__.py +++ b/lib/bb/fetch/__init__.py @@ -647,6 +647,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": |