]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
recipetool: create: do not treat numbers in SCM URLs as versions
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Tue, 31 Jan 2017 20:11:05 +0000 (09:11 +1300)
committerPaul Eggleton <paul.eggleton@linux.intel.com>
Mon, 6 Feb 2017 20:43:34 +0000 (09:43 +1300)
commitede21e1bb24714c94f2fe7a97749127a03ccd8fb
tree09ec6d1a6e4d7611d40875aedd35300a754aca64
parent5d1f23f2205be024f43facc76f69ad0a9b2bb154
recipetool: create: do not treat numbers in SCM URLs as versions

Numbers within SCM (e.g. git) URLs are extremely unlikely to be valid
version numbers - more likely they are just part of the name, thus don't
try to extract them and use them as the version - doing so causes pretty
bad behaviour within devtool:

--------- snip ---------
$ devtool add https://github.com/inhedron/libtr50
NOTE: Fetching git://github.com/inhedron/libtr50;protocol=https...
...
NOTE: Using default source tree path .../build/workspace/sources/libtr
...
RecursionError: maximum recursion depth exceeded while calling a Python object
--------- snip ---------

(This was because ${PV} was being substituted into the URL, but PV's
value was being set to include ${SRCPV}, so there was a circular
reference.)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
scripts/lib/recipetool/create.py