From 9cdb0c1383bc30b3dfae06009a740ea55fa12005 Mon Sep 17 00:00:00 2001 From: Michael Green Date: Tue, 15 Jan 2019 17:41:58 +0100 Subject: [PATCH] limit to known phases --- lib/Pinto/PackageExtractor.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Pinto/PackageExtractor.pm b/lib/Pinto/PackageExtractor.pm index 85932b54..1568de67 100644 --- a/lib/Pinto/PackageExtractor.pm +++ b/lib/Pinto/PackageExtractor.pm @@ -108,7 +108,7 @@ sub requires { catch { throw "Unable to extract prereqs from $archive: $_" }; my @prereqs; - for my $phase ( keys %{$prereqs_meta} ) { + for my $phase ( qw/configure runtime build test/ ) { # TODO: Also capture the relation (suggested, requires, recomends, etc.) # But that will require a schema change to add another column to the table.