[Buildroot] [PATCH 1/1] utils/scanpypi: increase error message verbosity

Alexey Roslyakov alexey.roslyakov at gmail.com
Mon Dec 18 14:00:16 UTC 2017


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

Signed-off-by: Alexey Roslyakov <alexey.roslyakov at 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



More information about the buildroot mailing list