Re: [Module-build-general] Methods available to subclasses?
Status: Beta
Brought to you by:
kwilliams
|
From: Ken W. <ke...@ma...> - 2003-04-12 03:31:22
|
On Friday, April 11, 2003, at 06:18 PM, Dave Rolsky wrote:
> - I'd also like to see it documented that the check_installed_version
> method works as a class method. Unfortunately, it only works as class
> method if the version given as the optional second argument is a simple
> number, not a more complex spec. I think this is actually a bug in the
> implementation, since in all cases, its called internally with the
> spec as
> an argument.
>
Oops - you mean this?
===================================================================
RCS file: /cvsroot/module-build/Module-Build/lib/Module/Build/Base.pm,v
retrieving revision 1.86
diff -u -r1.86 Base.pm
--- lib/Module/Build/Base.pm 6 Apr 2003 04:45:14 -0000 1.86
+++ lib/Module/Build/Base.pm 12 Apr 2003 03:23:46 -0000
@@ -428,7 +428,7 @@
if ($spec =~ /^\s*([\w.]+)\s*$/) { # A plain number, maybe with
dots, letters, and underscores
@conditions = (">= $spec");
} else {
- @conditions = split /\s*,\s*/,
$self->{properties}{requires}{$modname};
+ @conditions = split /\s*,\s*/, $spec;
}
foreach (@conditions) {
-Ken
|