[Module-build-checkins] Module-Build/lib/Module/Build Base.pm,1.472,1.473
Status: Beta
Brought to you by:
kwilliams
|
From: Ken W. <kwi...@us...> - 2005-08-11 01:58:37
|
Update of /cvsroot/module-build/Module-Build/lib/Module/Build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13781/lib/Module/Build Modified Files: Base.pm Log Message: Fix a bug with licenses that have no known URL Index: Base.pm =================================================================== RCS file: /cvsroot/module-build/Module-Build/lib/Module/Build/Base.pm,v retrieving revision 1.472 retrieving revision 1.473 diff -u -d -r1.472 -r1.473 --- Base.pm 4 Aug 2005 06:47:34 -0000 1.472 +++ Base.pm 11 Aug 2005 01:58:29 -0000 1.473 @@ -2590,8 +2590,8 @@ $self->log_warn("No license specified, setting license = 'unknown'\n"); $p->{license} = 'unknown'; } - unless ($self->valid_licenses->{ $p->{license} }) { - die "Unknown license type '$p->{license}"; + unless (exists $self->valid_licenses->{ $p->{license} }) { + die "Unknown license type '$p->{license}'"; } # If we're in the distdir, the metafile may exist and be non-writable. |