cvs: pear-core /PEAR Dependency2.php

From: Date: Wed, 20 Oct 2004 16:29:30 +0000
Subject: cvs: pear-core /PEAR Dependency2.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-1087@lists.php.net to get a copy of this message
cellog Wed Oct 20 12:29:30 2004 EDT Modified files: /pear-core/PEAR Dependency2.php Log: case-insensitivity for OS dependency http://cvs.php.net/diff.php/pear-core/PEAR/Dependency2.php?r1=1.19&r2=1.20&ty=u Index: pear-core/PEAR/Dependency2.php diff -u pear-core/PEAR/Dependency2.php:1.19 pear-core/PEAR/Dependency2.php:1.20 --- pear-core/PEAR/Dependency2.php:1.19 Wed Oct 20 11:24:22 2004 +++ pear-core/PEAR/Dependency2.php Wed Oct 20 12:29:30 2004 @@ -16,7 +16,7 @@ // | Authors: Greg Beaver <cellog@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Dependency2.php,v 1.19 2004/10/20 15:24:22 cellog Exp $ +// $Id: Dependency2.php,v 1.20 2004/10/20 16:29:30 cellog Exp $ require_once 'OS/Guess.php'; require_once 'PEAR/Validate.php'; @@ -177,7 +177,7 @@ break; default : if ($not) { - if ($dep['name'] == $this->_os->getSysname()) { + if (strtolower($dep['name']) == strtolower($this->_os->getSysname())) { if (!isset($this->_options['nodeps']) && !isset($this->_options['force'])) { return $this->raiseError('Cannot install %s on ' . $dep['name'] . @@ -188,7 +188,7 @@ } } } else { - if ($dep['name'] != $this->_os->getSysname()) { + if (strtolower($dep['name']) != strtolower($this->_os->getSysname())) { if (!isset($this->_options['nodeps']) && !isset($this->_options['force'])) { return $this->raiseError('Cannot install %s on ' .

« previous php.pear.core (#1087) next »