Skip to content

Commit

Permalink
Item1177: Remove >= and > from version in DEPENDENCIES. This doesn't …
Browse files Browse the repository at this point in the history
…make much sense, does it?

git-svn-id: http://svn.foswiki.org/trunk@2872 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
OlivierRaginel authored and OlivierRaginel committed Mar 4, 2009
1 parent e66c3f1 commit cd39905
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/tools/extender.pl
Expand Up @@ -193,6 +193,7 @@ sub check_dep {

# check if the version satisfies the prerequisite
if ( defined $dep->{version} ) {
$dep->{version} =~ s/>=?//; # Remove > and >=
if ( not eval { $module->VERSION( $dep->{version} ) } ) {
$ok = 0;
( $msg = $@ ) =~ s/ at .*$//;
Expand Down Expand Up @@ -852,6 +853,7 @@ sub _install {
}

if ( $path->use ) {

# Module is already installed
# XXX SMELL: Could be more user-friendly:
# test that current version isn't newest
Expand Down

0 comments on commit cd39905

Please sign in to comment.