cvs: pear-core(PEAR_1_3) /PEAR Installer.php

From: Date: Fri, 22 Oct 2004 23:03:54 +0000
Subject: cvs: pear-core(PEAR_1_3) /PEAR Installer.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-1124@lists.php.net to get a copy of this message
cellog Fri Oct 22 19:03:54 2004 EDT Modified files: (Branch: PEAR_1_3) /pear-core/PEAR Installer.php Log: implement request #1891 NOTE: this will only work for package.xml 1.0 http://cvs.php.net/diff.php/pear-core/PEAR/Installer.php?r1=1.150&r2=1.150.2.1&ty=u Index: pear-core/PEAR/Installer.php diff -u pear-core/PEAR/Installer.php:1.150 pear-core/PEAR/Installer.php:1.150.2.1 --- pear-core/PEAR/Installer.php:1.150 Sat Jun 12 01:48:10 2004 +++ pear-core/PEAR/Installer.php Fri Oct 22 19:03:53 2004 @@ -18,7 +18,7 @@ // | Martin Jansen <mj@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Installer.php,v 1.150 2004/06/12 05:48:10 cellog Exp $ +// $Id: Installer.php,v 1.150.2.1 2004/10/22 23:03:53 cellog Exp $ require_once 'PEAR/Downloader.php'; @@ -165,7 +165,14 @@ include_once "OS/Guess.php"; $os = new OS_Guess(); } - if (!$os->matchSignature($atts['platform'])) { + if (strlen($atts['platform']) && $atts['platform']{0} == '!') { + $negate = true; + $platform = substr($atts['platform'], 1); + } else { + $negate = false; + $platform = $atts['platform']; + } + if ((bool) $os->matchSignature($platform) === $negate) { $this->log(3, "skipped $file (meant for $atts[platform], we are ".$os->getSignature().")"); return PEAR_INSTALLER_SKIPPED; }

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