[bitbake-devel] [PATCH] fetch2: include PV in 'Unable to get checksum for SRC_URI entry' warnings
Martin Jansa
martin.jansa at gmail.com
Thu Mar 10 17:03:50 UTC 2016
On Thu, Mar 10, 2016 at 08:15:32AM -0800, Andre McCurdy wrote:
> Referencing PN only is ambiguous if multiple versions of a recipe are
> present.
Would it work with FILE to get immediate pointer to file where to update
them?
>
> Signed-off-by: Andre McCurdy <armccurdy at gmail.com>
> ---
> lib/bb/fetch2/__init__.py | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py
> index f86014c..124420d 100644
> --- a/lib/bb/fetch2/__init__.py
> +++ b/lib/bb/fetch2/__init__.py
> @@ -1102,9 +1102,9 @@ def get_checksum_file_list(d):
> if f.startswith(dl_dir):
> # The local fetcher's behaviour is to return a path under DL_DIR if it couldn't find the file anywhere else
> if os.path.exists(f):
> - bb.warn("Getting checksum for %s SRC_URI entry %s: file not found except in DL_DIR" % (d.getVar('PN', True), os.path.basename(f)))
> + bb.warn("Getting checksum for %s SRC_URI entry %s: file not found except in DL_DIR" % (d.getVar('P', True), os.path.basename(f)))
> else:
> - bb.warn("Unable to get checksum for %s SRC_URI entry %s: file could not be found" % (d.getVar('PN', True), os.path.basename(f)))
> + bb.warn("Unable to get checksum for %s SRC_URI entry %s: file could not be found" % (d.getVar('P', True), os.path.basename(f)))
> filelist.append(f + ":" + str(os.path.exists(f)))
>
> return " ".join(filelist)
> --
> 1.9.1
>
> --
> _______________________________________________
> bitbake-devel mailing list
> bitbake-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/bitbake-devel
--
Martin 'JaMa' Jansa jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/bitbake-devel/attachments/20160310/0b904e63/attachment-0002.sig>
More information about the bitbake-devel
mailing list