Remove commit-log-editor's dependency on Module::Load::Conditional
authoraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 Jul 2011 20:58:44 +0000 (20:58 +0000)
committeraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 Jul 2011 20:58:44 +0000 (20:58 +0000)
commit1f73488085fbc7390bee70339aed31bc25997206
treed104466886b7b814114c483ae2eeb111a6c14364
parentbc8d42cc2af9fcf14903ddeba051a50270dd6745
Remove commit-log-editor's dependency on Module::Load::Conditional

This module isn't available in Perl 5.8.8 (the version used on Leopard).

Fixes <http://webkit.org/b/64198> REGRESSION (r90583):
webkitpy.common.checkout.checkout_unittest failing on Leopard

Reviewed by Daniel Bates.

* Scripts/commit-log-editor: Use the new loadTermReadKey() function instead of
Module::Load::Conditional::can_load.
(loadTermReadKey): Added. Tries to load Term::ReadKey and returns true if it's successful.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@90664 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Tools/ChangeLog
Tools/Scripts/commit-log-editor