From patchwork Sun Aug 20 08:03:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francois Perrad X-Patchwork-Id: 803672 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.138; helo=whitealder.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="E5gJxW/5"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xZqDN5tDBz9t16 for ; Sun, 20 Aug 2017 18:07:16 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 6D57287D98; Sun, 20 Aug 2017 08:07:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id B3ieCfa-pkMZ; Sun, 20 Aug 2017 08:07:08 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id CF99387F2E; Sun, 20 Aug 2017 08:07:00 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 44A181C4116 for ; Sun, 20 Aug 2017 08:06:34 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 3A45487D64 for ; Sun, 20 Aug 2017 08:06:34 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DcRbVVeVPq8x for ; Sun, 20 Aug 2017 08:06:33 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by whitealder.osuosl.org (Postfix) with ESMTPS id A187E87DDD for ; Sun, 20 Aug 2017 08:06:33 +0000 (UTC) Received: by mail-wm0-f66.google.com with SMTP id c14so4345456wmh.1 for ; Sun, 20 Aug 2017 01:06:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Mme/es06wd54CzXQz8fRkeML7AsvBbxiiaY1AThplfg=; b=E5gJxW/5d87J2fNqkQ+LCxUyVjAtFFQgOtfe4p5MuCZndfCq2X3cIwNU9HoCAqQnZC jFCqVog5pEuoljg7P+SqEUbtrKI29dS8bOG3h444p6dep3UlEirYKb1ttmemY8+fq390 pT3hInWXrX6jy71xgHRcn44cAMUPTb4eG0VqoIrFOeJRj+XxsYQvCwptUHjoJHvK6hUn OYfNB+f8OQsH6m1hbd5+VZMId2Wj/jv3lkXZngMpzqqNDxMrUG8HhZfvf8Pgf1NcsrJS VXkCcXQBUyh1cJM6JbypJxsuYtqwzC2s/Ak5MDuDI/jnSpl47Qmik2rw+aU45t7I9Fla +GYg== 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:in-reply-to :references; bh=Mme/es06wd54CzXQz8fRkeML7AsvBbxiiaY1AThplfg=; b=VzqfHsJEOESSiXYSYgknPERVxUTpvyQ9bCizSWCaLc21AqUmFJ3u4iM0YTEx5mps9i QO2B/iNvTF86ITZa9UcehQnRfL7cMbc1TLr2mgPF5C4XLGoqSk4e8J++xUDBGd6jh88F fjEitBAn5ChYkx5wKAdKNklwqWUyQqCUo8vUtX2kIOnEQ7GzAi470sBfQuIocXV4Uwdk QZl5l6fklptcKGdDWLXLq/Gc9Rq5LrQLpUSdG45H4HLy27ZMmRKKWcr8l22xDulMDlse 8NxoNM1rHq1apJ5WR4xWeBz1OdEs2+8MCEJ5Z27k/aq3kG933p8z2xnLqFmkgpHaWR06 1IRg== X-Gm-Message-State: AHYfb5il+Hrpu6qcHZwhGqB+ZZo3WhWzQWidQomeCR5MwXX31OG5IlEH lDJpsib+2K1zly6s X-Received: by 10.28.175.65 with SMTP id y62mr4810235wme.77.1503216391966; Sun, 20 Aug 2017 01:06:31 -0700 (PDT) Received: from localhost.localdomain (126.85.114.78.rev.sfr.net. [78.114.85.126]) by smtp.gmail.com with ESMTPSA id 77sm4209271wmt.39.2017.08.20.01.06.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 20 Aug 2017 01:06:29 -0700 (PDT) From: Francois Perrad X-Google-Original-From: Francois Perrad To: buildroot@busybox.net Date: Sun, 20 Aug 2017 10:03:31 +0200 Message-Id: <20170820080331.12935-18-francois.perrad@gadz.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170820080331.12935-1-francois.perrad@gadz.org> References: <20170820080331.12935-1-francois.perrad@gadz.org> Subject: [Buildroot] [PATCH 18/18] scancpan: catch exception when MANIFEST is missing X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Francois Perrad --- utils/scancpan | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/utils/scancpan b/utils/scancpan index 9ccbac5a4..20bd4c693 100755 --- a/utils/scancpan +++ b/utils/scancpan @@ -567,11 +567,17 @@ sub fetch { say qq{fetch ${name}} unless $quiet; my $result = $mcpan->release( distribution => $name ); $dist{$name} = $result; - my $manifest = $mcpan->source( author => $result->{author}, - release => $name . q{-} . $result->{version}, - path => 'MANIFEST' ); - $need_dlopen{$name} = is_xs( $manifest ); - $license_files{$name} = find_license_files( $manifest ); + eval { + my $manifest = $mcpan->source( author => $result->{author}, + release => $name . q{-} . $result->{version}, + path => 'MANIFEST' ); + $need_dlopen{$name} = is_xs( $manifest ); + $license_files{$name} = find_license_files( $manifest ); + }; + if ($@) { + warn $@; + $license_files{$name} = []; + } my %build = (); my %runtime = (); my %optional = ();