diff options
author | Anuj Mittal <anuj.mittal@intel.com> | 2019-06-13 08:28:48 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-06-14 22:48:22 +0100 |
commit | 2938210267f8f30db6e217207e2ad75e70ee81aa (patch) | |
tree | 13f3b9e031f805a1f81a10fd5f5b9d5816db56c1 /meta/recipes-devtools/python | |
parent | 07526deab6f347ffffb7a72c23b0fa0794335cbb (diff) | |
download | poky-2938210267f8f30db6e217207e2ad75e70ee81aa.tar.gz |
python3-scons: fix regex replacing python by python3
Match only the first line and match even if the line says python3.
Otherwise we end up with multiple 3s at the end after multiple
invocations of do_install on same source.
(From OE-Core rev: 144c6c7183dd2b32c65edf325038eb84683a28f8)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python')
-rw-r--r-- | meta/recipes-devtools/python/python3-scons_3.0.5.bb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-devtools/python/python3-scons_3.0.5.bb b/meta/recipes-devtools/python/python3-scons_3.0.5.bb index 91e4a945e3..7fb75a627e 100644 --- a/meta/recipes-devtools/python/python3-scons_3.0.5.bb +++ b/meta/recipes-devtools/python/python3-scons_3.0.5.bb | |||
@@ -15,7 +15,7 @@ UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)\.tar" | |||
15 | inherit setuptools3 | 15 | inherit setuptools3 |
16 | 16 | ||
17 | do_install_prepend() { | 17 | do_install_prepend() { |
18 | sed -i -e "s:/usr/bin/env python:/usr/bin/env python3:g" ${S}/script/* | 18 | sed -i -e "1s,#!.*python.*,#!${USRBINPATH}/env python3," ${S}/script/* |
19 | } | 19 | } |
20 | 20 | ||
21 | RDEPENDS_${PN} = "\ | 21 | RDEPENDS_${PN} = "\ |