Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] utils/scanpypi: increase error message verbosity
@ 2017-12-18 14:00 Alexey Roslyakov
  2017-12-18 14:16 ` Yegor Yefremov
  2017-12-18 14:19 ` Thomas Petazzoni
  0 siblings, 2 replies; 5+ messages in thread
From: Alexey Roslyakov @ 2017-12-18 14:00 UTC (permalink / raw)
  To: buildroot

When package installation fails it is good to know what happened.

Signed-off-by: Alexey Roslyakov <alexey.roslyakov@gmail.com>
---
 utils/scanpypi | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/utils/scanpypi b/utils/scanpypi
index 02384f2569..939c26a187 100755
--- a/utils/scanpypi
+++ b/utils/scanpypi
@@ -608,9 +608,9 @@ def main():
                 else:
                     raise
                 continue
-            except AttributeError:
-                print('Error: Could not install package {pkg}'.format(
-                    pkg=package.real_name))
+            except AttributeError as error:
+                print('Error: Could not install package {pkg}: {error}'.format(
+                    pkg=package.real_name, error=error))
                 continue
 
             # Package requirement are an argument of the setup function
-- 
2.13.6

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH 1/1] utils/scanpypi: increase error message verbosity
  2017-12-18 14:00 [Buildroot] [PATCH 1/1] utils/scanpypi: increase error message verbosity Alexey Roslyakov
@ 2017-12-18 14:16 ` Yegor Yefremov
  2017-12-18 14:19 ` Thomas Petazzoni
  1 sibling, 0 replies; 5+ messages in thread
From: Yegor Yefremov @ 2017-12-18 14:16 UTC (permalink / raw)
  To: buildroot

Hi Alexey,

On Mon, Dec 18, 2017 at 3:00 PM, Alexey Roslyakov
<alexey.roslyakov@gmail.com> wrote:
> When package installation fails it is good to know what happened.
>
> Signed-off-by: Alexey Roslyakov <alexey.roslyakov@gmail.com>

Nice catch.

Reviewed-by: Yegor Yefremov <yegorslists@googlemail.com>

Yegor

> ---
>  utils/scanpypi | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/utils/scanpypi b/utils/scanpypi
> index 02384f2569..939c26a187 100755
> --- a/utils/scanpypi
> +++ b/utils/scanpypi
> @@ -608,9 +608,9 @@ def main():
>                  else:
>                      raise
>                  continue
> -            except AttributeError:
> -                print('Error: Could not install package {pkg}'.format(
> -                    pkg=package.real_name))
> +            except AttributeError as error:
> +                print('Error: Could not install package {pkg}: {error}'.format(
> +                    pkg=package.real_name, error=error))
>                  continue
>
>              # Package requirement are an argument of the setup function
> --
> 2.13.6
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH 1/1] utils/scanpypi: increase error message verbosity
  2017-12-18 14:00 [Buildroot] [PATCH 1/1] utils/scanpypi: increase error message verbosity Alexey Roslyakov
  2017-12-18 14:16 ` Yegor Yefremov
@ 2017-12-18 14:19 ` Thomas Petazzoni
  2017-12-18 14:56   ` Yegor Yefremov
  1 sibling, 1 reply; 5+ messages in thread
From: Thomas Petazzoni @ 2017-12-18 14:19 UTC (permalink / raw)
  To: buildroot

Hello,

On Mon, 18 Dec 2017 21:00:16 +0700, Alexey Roslyakov wrote:
> When package installation fails it is good to know what happened.
> 
> Signed-off-by: Alexey Roslyakov <alexey.roslyakov@gmail.com>
> ---
>  utils/scanpypi | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH 1/1] utils/scanpypi: increase error message verbosity
  2017-12-18 14:19 ` Thomas Petazzoni
@ 2017-12-18 14:56   ` Yegor Yefremov
  2017-12-18 17:50     ` Alexey Roslyakov
  0 siblings, 1 reply; 5+ messages in thread
From: Yegor Yefremov @ 2017-12-18 14:56 UTC (permalink / raw)
  To: buildroot

On Mon, Dec 18, 2017 at 3:19 PM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> Hello,
>
> On Mon, 18 Dec 2017 21:00:16 +0700, Alexey Roslyakov wrote:
>> When package installation fails it is good to know what happened.
>>
>> Signed-off-by: Alexey Roslyakov <alexey.roslyakov@gmail.com>
>> ---
>>  utils/scanpypi | 6 +++---
>>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> Applied to master, thanks.

@Alexey do you have more scanpypi patches in the queue? I've reworked
the license type detection [1]. I'd also like to add licence file
checksum to the *.hash file creation.

[1] http://patchwork.ozlabs.org/patch/837807/

Yegor

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH 1/1] utils/scanpypi: increase error message verbosity
  2017-12-18 14:56   ` Yegor Yefremov
@ 2017-12-18 17:50     ` Alexey Roslyakov
  0 siblings, 0 replies; 5+ messages in thread
From: Alexey Roslyakov @ 2017-12-18 17:50 UTC (permalink / raw)
  To: buildroot

Yegor,
no, I don't have anything at the moment.

All best.

On 18 December 2017 at 21:56, Yegor Yefremov <yegorslists@googlemail.com>
wrote:

> On Mon, Dec 18, 2017 at 3:19 PM, Thomas Petazzoni
> <thomas.petazzoni@free-electrons.com> wrote:
> > Hello,
> >
> > On Mon, 18 Dec 2017 21:00:16 +0700, Alexey Roslyakov wrote:
> >> When package installation fails it is good to know what happened.
> >>
> >> Signed-off-by: Alexey Roslyakov <alexey.roslyakov@gmail.com>
> >> ---
> >>  utils/scanpypi | 6 +++---
> >>  1 file changed, 3 insertions(+), 3 deletions(-)
> >
> > Applied to master, thanks.
>
> @Alexey do you have more scanpypi patches in the queue? I've reworked
> the license type detection [1]. I'd also like to add licence file
> checksum to the *.hash file creation.
>
> [1] http://patchwork.ozlabs.org/patch/837807/
>
> Yegor
>



-- 
With best regards,
  Alexey Roslyakov
Email: alexey.roslyakov at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20171219/6bb1d959/attachment.html>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-12-18 17:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-18 14:00 [Buildroot] [PATCH 1/1] utils/scanpypi: increase error message verbosity Alexey Roslyakov
2017-12-18 14:16 ` Yegor Yefremov
2017-12-18 14:19 ` Thomas Petazzoni
2017-12-18 14:56   ` Yegor Yefremov
2017-12-18 17:50     ` Alexey Roslyakov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox