From patchwork Mon Dec 18 14:00:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Roslyakov X-Patchwork-Id: 850058 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="uHrP45b2"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3z0jNg4mZYz9s81 for ; Tue, 19 Dec 2017 01:00:35 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 073F48808D; Mon, 18 Dec 2017 14:00:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fJeON3wJhA1Y; Mon, 18 Dec 2017 14:00:32 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 75904881A3; Mon, 18 Dec 2017 14:00:32 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 19F3A1BFCA2 for ; Mon, 18 Dec 2017 14:00:31 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 16868881A3 for ; Mon, 18 Dec 2017 14:00:31 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dZpSpD9rWRY4 for ; Mon, 18 Dec 2017 14:00:30 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pl0-f52.google.com (mail-pl0-f52.google.com [209.85.160.52]) by hemlock.osuosl.org (Postfix) with ESMTPS id 9CAF38808D for ; Mon, 18 Dec 2017 14:00:30 +0000 (UTC) Received: by mail-pl0-f52.google.com with SMTP id g2so4866296pli.8 for ; Mon, 18 Dec 2017 06:00:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=mBaIANFonqly3DXuj4OvGi5wBY1lBl+ZI8QbPiVM6L4=; b=uHrP45b2kEgKbs6czeZZE8dUmV06PABuUdvmXm4Jwn1VB9jIB78UbfXXEcYZYnu+OK 96XQdyqsp9fcjPku3u9xmX1vbk+x0Wi8bgomsAq1WWqoPPJ97vJOF21B+7B1cvYiNPsx HIzz1up1Sm/WOe6UM8JfV1uRPpSPHxOTyLb1qBaxY8re1IBiN8mEI5No93SUkiS4J/M9 vOYMOlyMg1Yb1QMDaCMQNGhWSKpRunRFSwq0NhT4UlfIGwpsHxRGfUZ0CB55nZ/nC+1h 19EU0dJOi5taH4/Gud3piVgW1faBHt+XrIxprUsvdIEURqbyzPb2MhD/2O6wIbwI9LEY gxww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=mBaIANFonqly3DXuj4OvGi5wBY1lBl+ZI8QbPiVM6L4=; b=diIXBK45wCxvtEhtzWNZSPlfPzNfRf4i9w5B7uBDIsg+6K9vkoho+dGSQW0YVradUJ TizV87mfFFwvwX21QDYBo3ED7FCiiZTbdJ8FQ/qGoOO3aBepiIfZqG+bpFeBcMQCH8u4 Iom8wy0S4vyOn1RY4bNqi96LspxKJSd0sL15euAzqSjo9Blidh3hc/qQbAQyxY9rrMkF O5j5sIXAKnzs8xSj+2VgxNjXgndizUpmGTNQsGuCQB8Vdrcqz90X3FOODQ2+rM+GyFkE wnO1aSpW1PDouW8DBSwEBYcQZ7R+M/4A7O5Vk9ZBze9wbOdPsEFuOBjdN1v6CXCs3Ngs vFYw== X-Gm-Message-State: AKGB3mKVzvGeahC24u0qv3+pQmb4Bh6OkWOcRFg8Vm8ZtwRebq49TZfV vThoX1niOvpGiMRivZKOaVbo7KIq X-Google-Smtp-Source: ACJfBouCIqi67OAlJ3+Og6AQG7G6M00bcqf7k+Kkt9veVaqC9uzZeQvOWVPo2v/Fn2vZ1931xskbkg== X-Received: by 10.84.160.227 with SMTP id v32mr17929164plg.184.1513605629885; Mon, 18 Dec 2017 06:00:29 -0800 (PST) Received: from localhost.localdomain (node-aoe.pool-118-173.dynamic.totbb.net. [118.173.54.14]) by smtp.gmail.com with ESMTPSA id n12sm26835509pfb.5.2017.12.18.06.00.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Dec 2017 06:00:28 -0800 (PST) From: Alexey Roslyakov To: buildroot@buildroot.org Date: Mon, 18 Dec 2017 21:00:16 +0700 Message-Id: <20171218140016.13774-1-alexey.roslyakov@gmail.com> X-Mailer: git-send-email 2.13.6 Subject: [Buildroot] [PATCH 1/1] utils/scanpypi: increase error message verbosity X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexey Roslyakov MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" When package installation fails it is good to know what happened. Signed-off-by: Alexey Roslyakov Reviewed-by: Yegor Yefremov --- 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