{"thread":{"id":"7763","subject":"[PATCH] perl: install private Error.pm if the site version is older than our own","startedAt":"2007-04-21T07:55:00Z","lastAt":"2007-04-21T07:55:00Z","messageCount":1,"participants":["Eric Wong"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"40030","messageId":"11771421002228-git-send-email-normalperson@yhbt.net","threadId":"7763","inReplyTo":null,"subject":"[PATCH] perl: install private Error.pm if the site version is older than our own","fromName":"Eric Wong","fromEmail":"normalperson@yhbt.net","sentAt":"2007-04-21T07:55:00Z","receivedAt":"2007-04-21T07:55:00Z","isPatch":true,"sender":{"key":"e@80x24.org","avatar":null},"body":"bdash (on IRC) had a problem with Git.pm (via git-svn) when his\nsite installation of Error.pm was older than the version we\npackage.\n\nSigned-off-by: Eric Wong <normalperson@yhbt.net>\n---\n perl/Makefile.PL |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/perl/Makefile.PL b/perl/Makefile.PL\nindex 9b117fd..4375161 100644\n--- a/perl/Makefile.PL\n+++ b/perl/Makefile.PL\n@@ -13,7 +13,7 @@ my %pm = ('Git.pm' => '$(INST_LIBDIR)/Git.pm');\n # We come with our own bundled Error.pm. It's not in the set of default\n # Perl modules so install it if it's not available on the system yet.\n eval { require Error };\n-if ($@) {\n+if ($@ || $Error::VERSION < 0.15009) {\n \t$pm{'private-Error.pm'} = '$(INST_LIBDIR)/Error.pm';\n }\n \n-- \n1.5.1.1.139.g3b0e-dirty\n"}]}