From 69fca5ee6996979b99598f30961d543f2d2317e7 Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Tue, 20 Apr 2010 17:00:42 -0700 Subject: Bug 560691: Make sure that install-module.pl never prompts the user while installing modules r=mkanat, a=mkanat (module owner) --- Bugzilla/Install/Requirements.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Bugzilla/Install/Requirements.pm') diff --git a/Bugzilla/Install/Requirements.pm b/Bugzilla/Install/Requirements.pm index 83c6c2c90..7b7047cc4 100644 --- a/Bugzilla/Install/Requirements.pm +++ b/Bugzilla/Install/Requirements.pm @@ -533,8 +533,9 @@ sub have_vers { eval "require $module;"; - # VERSION is provided by UNIVERSAL:: - my $vnum = eval { $module->VERSION } || -1; + # VERSION is provided by UNIVERSAL::, and can be called even if + # the module isn't loaded. + my $vnum = $module->VERSION || -1; # CGI's versioning scheme went 2.75, 2.751, 2.752, 2.753, 2.76 # That breaks the standard version tests, so we need to manually correct -- cgit v1.2.3-24-g4f1b