summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Install/Requirements.pm
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-04-21 02:00:42 +0200
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-04-21 02:00:42 +0200
commit69fca5ee6996979b99598f30961d543f2d2317e7 (patch)
tree046f7cebda1a15ca02096c790fee36ba7511f4c7 /Bugzilla/Install/Requirements.pm
parent98820141e34dedce1d5282457a6320c909322a33 (diff)
downloadbugzilla-69fca5ee6996979b99598f30961d543f2d2317e7.tar.gz
bugzilla-69fca5ee6996979b99598f30961d543f2d2317e7.tar.xz
Bug 560691: Make sure that install-module.pl never prompts the user while
installing modules r=mkanat, a=mkanat (module owner)
Diffstat (limited to 'Bugzilla/Install/Requirements.pm')
-rw-r--r--Bugzilla/Install/Requirements.pm5
1 files changed, 3 insertions, 2 deletions
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