[Buildroot] [PATCH 1/1] utils/scanpypi: increase error message verbosity
Yegor Yefremov
yegorslists at googlemail.com
Mon Dec 18 14:16:22 UTC 2017
Hi Alexey,
On Mon, Dec 18, 2017 at 3:00 PM, Alexey Roslyakov
<alexey.roslyakov at gmail.com> wrote:
> When package installation fails it is good to know what happened.
>
> Signed-off-by: Alexey Roslyakov <alexey.roslyakov at gmail.com>
Nice catch.
Reviewed-by: Yegor Yefremov <yegorslists at 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
>
More information about the buildroot
mailing list