]> code.ossystems Code Review - openembedded-core.git/commit
devtool: upgrade: handle recipes where source is not first entry in SRC_URI
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Thu, 14 Apr 2016 08:24:19 +0000 (20:24 +1200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 15 Apr 2016 05:57:47 +0000 (06:57 +0100)
commitc868198c1f6006789707b497c2ae34d7cc5e706f
tree0fbefaac0f9684b40c3e2ce6d70332405f2bb50d
parentda5cd84794e1ab5c4efcd6250d3b93a46f610744
devtool: upgrade: handle recipes where source is not first entry in SRC_URI

It is unusual but not impossible to find recipes whose first entry is
not the main source URL but instead some patch or other local file, for
example python-cryptography in meta-python (which sets SRC_URI before
inheriting pypi). There's nothing inherently wrong with this, and we
shouldn't assume that the first entry is the main source URL, so just
take the first non-local entry instead.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/devtool/upgrade.py