Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] Minor recipetool fix
@ 2015-01-28 12:02 Paul Eggleton
  2015-01-28 12:02 ` [PATCH 1/1] recipetool: replace version in S value Paul Eggleton
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Eggleton @ 2015-01-28 12:02 UTC (permalink / raw)
  To: openembedded-core

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(+)

-- 
1.9.3



^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH 1/1] recipetool: replace version in S value
  2015-01-28 12:02 [PATCH 0/1] Minor recipetool fix Paul Eggleton
@ 2015-01-28 12:02 ` Paul Eggleton
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Eggleton @ 2015-01-28 12:02 UTC (permalink / raw)
  To: openembedded-core

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@linux.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('')
 
-- 
1.9.3



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-01-28 12:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-28 12:02 [PATCH 0/1] Minor recipetool fix Paul Eggleton
2015-01-28 12:02 ` [PATCH 1/1] recipetool: replace version in S value Paul Eggleton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox