From: "Peter Kjellerstedt" <peter.kjellerstedt@axis.com>
To: "jcreedon@waymo.com" <jcreedon@waymo.com>,
"poky@lists.yoctoproject.org" <poky@lists.yoctoproject.org>
Subject: Re: [poky] [PATCH] externalsrc: remove submodule--helper list call
Date: Thu, 15 Sep 2022 21:45:48 +0000 [thread overview]
Message-ID: <7e1368ddf19045b2b22ccb51dd645d86@axis.com> (raw)
In-Reply-To: <CAEZLVp62cB9iaft34MZaV6ZRKh22K1Pv4oKtATB+p2b1p_T_dA@mail.gmail.com>
This patch should be sent to openembedded-core@lists.openembedded.org instead.
> -----Original Message-----
> From: poky@lists.yoctoproject.org <poky@lists.yoctoproject.org> On Behalf Of Jacob Creedon
> Sent: den 15 september 2022 22:26
> To: poky@lists.yoctoproject.org
> Subject: [poky] [PATCH] externalsrc: remove submodule--helper list call
>
> This removes a call to an undocumented and now deprecated subcommand of
> submodule--helper and replaces it with a supported command that gives an
I would change "submodule--helper" to "git submodule--helper" to make it
clear that you are talking about a git subcommand.
//Peter
> equivalent list.
>
> Signed-off-by: Jacob Creedon <jcreedon@google.com>
> ---
> meta/classes/externalsrc.bbclass | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/classes/externalsrc.bbclass b/meta/classes/externalsrc.bbclass
> index 3d6b80bee2..0401c75fa9 100644
> --- a/meta/classes/externalsrc.bbclass
> +++ b/meta/classes/externalsrc.bbclass
> @@ -217,7 +217,7 @@ def srctree_hash_files(d, srcdir=None):
> env['GIT_INDEX_FILE'] = tmp_index.name
> subprocess.check_output(['git', 'add', '-A', '.'], cwd=s_dir, env=env)
> git_sha1 = subprocess.check_output(['git', 'write-tree'], cwd=s_dir, env=env).decode("utf-8")
> - submodule_helper = subprocess.check_output(['git', 'submodule--helper', 'list'], cwd=s_dir, env=env).decode("utf-8")
> + submodule_helper = subprocess.check_output(['git', 'submodule', '--quiet', 'foreach', 'echo $sm_path'], cwd=s_dir, env=env).decode("utf-8")
> for line in submodule_helper.splitlines():
> module_dir = os.path.join(s_dir, line.rsplit(maxsplit=1)[1])
> if os.path.isdir(module_dir):
> --
> 2.37.3
next prev parent reply other threads:[~2022-09-15 21:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-15 21:25 [PATCH] externalsrc: remove submodule--helper list call Jacob Creedon
2022-09-15 21:45 ` Peter Kjellerstedt [this message]
2022-09-15 21:58 ` [poky] " Jacob Creedon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7e1368ddf19045b2b22ccb51dd645d86@axis.com \
--to=peter.kjellerstedt@axis.com \
--cc=jcreedon@waymo.com \
--cc=poky@lists.yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.