Fix probing for already installed Error.pm
The syntax for 'require' was wrong, and it was always failing, which resulted in installing our own version of Error.pm anyways. Now we used to ship our own Error.pm in the same directory, so after fixing the syntax, 'require' always succeeds, but it does not test if the platform has Error.pm module installed anymore. So rename the source we ship to private-Error.pm, and install that as Error.pm when the platform does not have one already. Signed-off-by: Pavel Roskin <proski@gnu.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Pavel Roskin committed
Jun 30, 2006 at 01:09 UTC
1d8c9dc47de0cbf3955ccc9408564cccbda8e348
2 files changed
+2
-2
perl/Makefile.PL
+2
-2
@@ -12,9 +12,9 @@ my %pm = ('Git.pm' => '$(INST_LIBDIR)/Git.pm');
12
13
# We come with our own bundled Error.pm. It's not in the set of default
14
# Perl modules so install it if it's not available on the system yet.
15
-eval { require 'Error' };
15
+eval { require Error };
16
if ($@) {
17
- $pm{'Error.pm'} = '$(INST_LIBDIR)/Error.pm';
17
+ $pm{'private-Error.pm'} = '$(INST_LIBDIR)/Error.pm';
18
}
19
20
WriteMakefile(