path: root/perl/Makefile.PL
diff options
authorPavel Roskin <>2006-06-30 05:09:23 (GMT)
committerJunio C Hamano <>2006-07-03 00:14:44 (GMT)
commit1d8c9dc47de0cbf3955ccc9408564cccbda8e348 (patch)
treebca0370fa6450cfdf965dc352bdf60f568ce8e6d /perl/Makefile.PL
parent3553309f5ba7f9fed61ac2767d53677c309826b2 (diff)
Fix probing for already installed
The syntax for 'require' was wrong, and it was always failing, which resulted in installing our own version of anyways. Now we used to ship our own in the same directory, so after fixing the syntax, 'require' always succeeds, but it does not test if the platform has module installed anymore. So rename the source we ship to, and install that as when the platform does not have one already. Signed-off-by: Pavel Roskin <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'perl/Makefile.PL')
1 files changed, 2 insertions, 2 deletions
diff --git a/perl/Makefile.PL b/perl/Makefile.PL
index d401a66..25ae54a 100644
--- a/perl/Makefile.PL
+++ b/perl/Makefile.PL
@@ -12,9 +12,9 @@ my %pm = ('' => '$(INST_LIBDIR)/');
# We come with our own bundled It's not in the set of default
# Perl modules so install it if it's not available on the system yet.
-eval { require 'Error' };
+eval { require Error };
if ($@) {
- $pm{''} = '$(INST_LIBDIR)/';
+ $pm{''} = '$(INST_LIBDIR)/';