* [PATCH] meta/classes: Replace obselete FuncFailed
@ 2020-01-24 18:06 Vijai Kumar K
2020-02-18 6:06 ` vijai kumar
2020-03-05 9:06 ` Baurzhan Ismagulov
0 siblings, 2 replies; 3+ messages in thread
From: Vijai Kumar K @ 2020-01-24 18:06 UTC (permalink / raw)
To: isar-users; +Cc: Vijai Kumar K
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] meta/classes: Replace obselete FuncFailed
2020-01-24 18:06 [PATCH] meta/classes: Replace obselete FuncFailed Vijai Kumar K
@ 2020-02-18 6:06 ` vijai kumar
2020-03-05 9:06 ` Baurzhan Ismagulov
1 sibling, 0 replies; 3+ messages in thread
From: vijai kumar @ 2020-02-18 6:06 UTC (permalink / raw)
To: isar-users
[-- 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 --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] meta/classes: Replace obselete FuncFailed
2020-01-24 18:06 [PATCH] meta/classes: Replace obselete FuncFailed Vijai Kumar K
2020-02-18 6:06 ` vijai kumar
@ 2020-03-05 9:06 ` Baurzhan Ismagulov
1 sibling, 0 replies; 3+ messages in thread
From: Baurzhan Ismagulov @ 2020-03-05 9:06 UTC (permalink / raw)
To: isar-users
Hello Vijai Kumar,
On Fri, Jan 24, 2020 at 11:36:38PM +0530, Vijai Kumar K wrote:
> bb.build.FuncFailed is dropped from bitbake v1.43.1 onwards.
> Replace the now obselete FuncFailed with bb.fatal.
Applied to next, thanks for your patience.
With kind regards,
Baurzhan.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-03-05 9:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-24 18:06 [PATCH] meta/classes: Replace obselete FuncFailed Vijai Kumar K
2020-02-18 6:06 ` vijai kumar
2020-03-05 9:06 ` Baurzhan Ismagulov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox