From: Paul Eggleton Date: Wed, 28 Jan 2015 12:02:26 +0000 (+0000) Subject: recipetool: replace version in S value X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~31418 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b3c81ed5bcce9b608c4f804496d769288fe8c04;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git recipetool: replace version in S value If a versioned recipe filename is specified, replace the version in the value of S with ${PV} just as we do with SRC_URI to make future upgrades of the recipe easier. Signed-off-by: Paul Eggleton Signed-off-by: Ross Burton --- diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py index 6dba07819bf..38f5eadaf5b 100644 --- a/scripts/lib/recipetool/create.py +++ b/scripts/lib/recipetool/create.py @@ -212,6 +212,8 @@ def create_recipe(args): # This would be the default, so we don't need to set S in the recipe srcsubdir = '' if srcsubdir: + if pv and pv not in 'git svn hg'.split(): + srcsubdir = srcsubdir.replace(pv, '${PV}') lines_before.append('S = "${WORKDIR}/%s"' % srcsubdir) lines_before.append('')