]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 411910: install-module.pl aborts when trying to install DBD::Oracle
authormkanat%bugzilla.org <>
Sat, 12 Jan 2008 06:43:22 +0000 (06:43 +0000)
committermkanat%bugzilla.org <>
Sat, 12 Jan 2008 06:43:22 +0000 (06:43 +0000)
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> (module owner) a=mkanat

install-module.pl

index eb9ae38e41a4932d872408597cfaea61c83b6fb6..a0de6d70aeba39841f1d41545e083dcd9001df0f 100644 (file)
@@ -85,13 +85,9 @@ if ($switch{'all'} || $switch{'upgrade-all'}) {
         # --all shouldn't include mod_perl2, because it can have some complex
         # configuration, and really should be installed on its own.
         next if $cpan_name eq 'mod_perl2';
+        next if $cpan_name eq 'DBD::Oracle' and !$ENV{ORACLE_HOME};
         install_module($cpan_name, $can_notest);
     }
-    my $dbs = DB_MODULE;
-    foreach my $db (keys %$dbs) {
-        install_module($dbs->{$db}->{dbd}->{module}, $can_notest)
-            unless have_vers($dbs->{$db}->{dbd}, 0);
-    }
 }
 
 foreach my $module (@ARGV) {