1 |
On Mon, Jul 11, 2022 at 12:11 PM Ionen Wolkens <ionen@g.o> wrote: |
2 |
> |
3 |
> On Mon, Jul 11, 2022 at 09:16:10AM -0400, Mike Gilbert wrote: |
4 |
> > It's common for python_check_deps to call python_has_version, which |
5 |
> > calls ebegin itself. |
6 |
> > |
7 |
> > Signed-off-by: Mike Gilbert <floppym@g.o> |
8 |
> > --- |
9 |
> > eclass/python-utils-r1.eclass | 9 ++++++--- |
10 |
> > 1 file changed, 6 insertions(+), 3 deletions(-) |
11 |
> > |
12 |
> > diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass |
13 |
> > index a18ca58475f..5c678c524ae 100644 |
14 |
> > --- a/eclass/python-utils-r1.eclass |
15 |
> > +++ b/eclass/python-utils-r1.eclass |
16 |
> > @@ -1399,9 +1399,12 @@ _python_run_check_deps() { |
17 |
> > |
18 |
> > local PYTHON_USEDEP="python_targets_${impl}(-)" |
19 |
> > local PYTHON_SINGLE_USEDEP="python_single_target_${impl}(-)" |
20 |
> > - ebegin " python_check_deps" |
21 |
> > - python_check_deps |
22 |
> > - eend ${?} |
23 |
> > + einfo " python_check_deps" |
24 |
> > + if python_check_deps; then |
25 |
> > + einfo " python_check_deps succeeded" |
26 |
> > + else |
27 |
> > + einfo " python_check_deps failed" |
28 |
> > + fi |
29 |
> > } |
30 |
> |
31 |
> I was about to go about merging this as suggested, but this masks the |
32 |
> return value, and then things like this always succeed: |
33 |
> |
34 |
> if _python_run_check_deps "${impl}"; then |
35 |
|
36 |
Thanks for catching that. |