From: vijai kumar <vijaikumar.kanagarajan@gmail.com>
To: isar-users <isar-users@googlegroups.com>
Subject: Re: [PATCH] meta/classes: Replace obselete FuncFailed
Date: Mon, 17 Feb 2020 22:06:50 -0800 (PST) [thread overview]
Message-ID: <77c2f89d-70cc-44c4-bc8e-f4df88ef71a5@googlegroups.com> (raw)
In-Reply-To: <20200124180638.2395-1-Vijaikumar_Kanagarajan@mentor.com>
[-- Attachment #1.1: Type: text/plain, Size: 1799 bytes --]
Can this be merged?
Thanks,
Vijai Kumar K
On Friday, January 24, 2020 at 11:37:06 PM UTC+5:30, vijai kumar wrote:
>
> bb.build.FuncFailed is dropped from bitbake v1.43.1 onwards.
> Replace the now obselete FuncFailed with bb.fatal.
>
> Signed-off-by: Vijai Kumar K <Vijaikumar_Kanagarajan@mentor.com>
> ---
> meta/classes/base.bbclass | 4 ++--
> meta/classes/dpkg-base.bbclass | 2 +-
> 2 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
> index e233164..b7de921 100644
> --- a/meta/classes/base.bbclass
> +++ b/meta/classes/base.bbclass
> @@ -171,7 +171,7 @@ python do_fetch() {
> fetcher = bb.fetch2.Fetch(src_uri, d)
> fetcher.download()
> except bb.fetch2.BBFetchException as e:
> - raise bb.build.FuncFailed(e)
> + bb.fatal(str(e))
> }
>
> addtask fetch before do_build
> @@ -190,7 +190,7 @@ python do_unpack() {
> fetcher = bb.fetch2.Fetch(src_uri, d)
> fetcher.unpack(rootdir)
> except bb.fetch2.BBFetchException as e:
> - raise bb.build.FuncFailed(e)
> + bb.fatal(str(e))
> }
>
> addtask unpack after do_fetch before do_build
> diff --git a/meta/classes/dpkg-base.bbclass
> b/meta/classes/dpkg-base.bbclass
> index af9c984..0589bf5 100644
> --- a/meta/classes/dpkg-base.bbclass
> +++ b/meta/classes/dpkg-base.bbclass
> @@ -40,7 +40,7 @@ python do_adjust_git() {
> if subprocess.call(cmd) != 0:
> bb.fatal("git alternates adjustment failed")
> except bb.fetch2.BBFetchException as e:
> - raise bb.build.FuncFailed(e)
> + bb.fatal(str(e))
> }
>
> addtask adjust_git after do_unpack before do_patch
> --
> 2.17.1
>
>
[-- Attachment #1.2: Type: text/html, Size: 2492 bytes --]
next prev parent reply other threads:[~2020-02-18 6:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-24 18:06 Vijai Kumar K
2020-02-18 6:06 ` vijai kumar [this message]
2020-03-05 9:06 ` Baurzhan Ismagulov
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=77c2f89d-70cc-44c4-bc8e-f4df88ef71a5@googlegroups.com \
--to=vijaikumar.kanagarajan@gmail.com \
--cc=isar-users@googlegroups.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox