bitbake: bitbake: fetch2: Print the complete SRCREV variable name when INVALID
authorDarren Hart <dvhart@linux.intel.com>
Tue, 5 Feb 2013 10:31:37 +0000 (02:31 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 5 Feb 2013 15:22:45 +0000 (15:22 +0000)
commit5e62e45ac7c941e1ff6d66675a2879a9f7216399
tree7c735c7f6baa528ca9be3079fdbc8d985a4af7ae
parent29b58cd22a1731a221af07821fe72ab9cf6da271
bitbake: bitbake: fetch2: Print the complete SRCREV variable name when INVALID

If a particular SRCREV (say for a particular branch) is missing, the
fetcher will currently just report an obtuse error about the "SRCREV"
being invalid. If there is more information is to be had (say from name,
i.e. branch, and pn) then display that as well.

The new error looks something like this:

ERROR: ExpansionError during parsing /home/dvhart/source/poky/meta/recipes-kernel/linux/linux-yocto_3.4.bb: Failure expanding variable do_patch: ExpansionError: Failure expanding variable SRCPV, expression was ${@bb.fetch2.get_srcrev(d)} which triggered exception FetchError: Fetcher failure for URL: 'git://otcgit.jf.intel.com/dvhart/linux-yocto-minnow-3.4.git;protocol=git;nocheckout=1;branch=standard/minnow,meta,emgd-1.14;name=machine,meta,emgd'. Please set SRCREV_emgd_pn-linux-yocto to a valid value

Note the variable listed as invalid is
"SRCREV_emgd_pn-linux-yocto", making it explicit what is wrong.

(Bitbake rev: 63774f5b4edb999300bddd891233f6050f4af877)

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Cc: bitbake-devel@lists.openembedded.org
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/fetch2/__init__.py