Skip to contentSkip to conversation

Minor recipetool fix

PATCH New Paul Eggleton 1 participant 2 messages Jan 28, 2015

lore
Share & tools
lore
#0 lore raw

cover Minor recipetool fix

The following changes since commit 2a775ebbb175dd70fc7228607c306d4ccb9e4ba4:

net-tools: Fix rerunning of do_patch task (2015-01-23 14:32:40 +0000)

are available in the git repository at:

git://git.openembedded.org/openembedded-core-contrib paule/recipetool-fix
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=paule/recipetool-fix

Paul Eggleton (1):
recipetool: replace version in S value

 scripts/lib/recipetool/create.py | 2 ++
 1 file changed, 2 insertions(+)
Signature · 1 line
1.9.3
#1 lore raw

PATCH 1/1 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.

---
 scripts/lib/recipetool/create.py | 2 ++
 1 file changed, 2 insertions(+)
scripts/lib/recipetool/create.py +2 -0
index 6dba078..38f5ead 100644
@@ -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('')
 
Signature · 1 line
1.9.3