[oe-commits] Paul Eggleton : recipetool: replace version in S value
git at git.openembedded.org
git at git.openembedded.org
Tue Feb 3 14:54:11 UTC 2015
Module: openembedded-core.git
Branch: master
Commit: 0b3c81ed5bcce9b608c4f804496d769288fe8c04
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=0b3c81ed5bcce9b608c4f804496d769288fe8c04
Author: Paul Eggleton <paul.eggleton at linux.intel.com>
Date: Wed Jan 28 12:02:26 2015 +0000
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 <paul.eggleton at linux.intel.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>
---
scripts/lib/recipetool/create.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py
index 6dba078..38f5ead 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('')
More information about the Openembedded-commits
mailing list