diff --git a/Changes b/Changes index 65e7d80..46c2f66 100644 --- a/Changes +++ b/Changes @@ -2,6 +2,7 @@ * Get rid of the word "Extras". * Filter out "Loading ... plugin" when running repoquery. +* Properly handle "requires: perl: 0" in META.yml. 1.71 2007-06-29 diff --git a/cpanspec b/cpanspec index 75fe0f9..996964e 100755 --- a/cpanspec +++ b/cpanspec @@ -10,7 +10,7 @@ # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # -# $Id: cpanspec,v 1.50 2007/07/09 19:03:51 stevenpritchard Exp $ +# $Id: cpanspec,v 1.51 2007/07/10 15:29:34 stevenpritchard Exp $ our $NAME="cpanspec"; our $VERSION='1.72'; @@ -939,12 +939,12 @@ END printf $spec "%-16s%s\n", "BuildArch:", "noarch" if ($noarch); - if ($requires{perl}) { + if (defined($requires{perl})) { $build_requires{perl}=$build_requires{perl} || $requires{perl}; delete $requires{perl}; } - if ($build_requires{perl}) { + if (defined($build_requires{perl})) { printf $spec "%-16s%s >= %s\n", "BuildRequires:", "perl", (($build_requires{perl} lt "5.6.0" ? "0:" : "1:") . $build_requires{perl});