]> code.ossystems Code Review - openembedded-core.git/commit
devtool: upgrade: handle recipes that use named SRC_URI checksums
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Tue, 3 Oct 2017 03:36:19 +0000 (16:36 +1300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 10 Nov 2017 14:44:31 +0000 (14:44 +0000)
commitc914a5e1ad6d96e316746222e5d42f2ba9110060
tree8798c0ab6867106b4c5f7c8d0d013f5941353fcf
parentab1b8d55e551fea3e8656aab7a786d1bfec62d0f
devtool: upgrade: handle recipes that use named SRC_URI checksums

devtool upgrade did not properly handle setting SRC_URI checksums for
recipes that use named SRC_URI entries and also use those names in the
SRC_URI checksums. A further complication was where the name contained
an expression that changed with the version e.g. ${PV} (probably quite
rare, but the dnsmasq recipe in meta-networking is currently one such
recipe.) All of these are now handled properly.

Additionally, drop the _get_checksums() function that wasn't being
called from anywhere in the code.

Note that this now turns nowrap_vars in recipeutils.py to be a list of
regexes, hence things such as [ and ] need to be appropriately escaped.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/lib/oe/recipeutils.py
scripts/lib/devtool/upgrade.py