cvs: pear /PEAR_PackageFileManager PackageFileManager2.php

From: Date: Thu, 28 Jul 2005 18:02:45 +0000
Subject: cvs: pear /PEAR_PackageFileManager PackageFileManager2.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-33440@lists.php.net to get a copy of this message
cellog Thu Jul 28 14:02:45 2005 EDT Modified files: /pear/PEAR_PackageFileManager PackageFileManager2.php Log: whitespace (TONS of tabs) to spaces

http://cvs.php.net/diff.php/pear/PEAR_PackageFileManager/PackageFileManager2.php?r1=1.6&r2=1.7&ty=u Index: pear/PEAR_PackageFileManager/PackageFileManager2.php diff -u pear/PEAR_PackageFileManager/PackageFileManager2.php:1.6 pear/PEAR_PackageFileManager/PackageFileManager2.php:1.7 --- pear/PEAR_PackageFileManager/PackageFileManager2.php:1.6 Thu Jul 28 13:59:14 2005 +++ pear/PEAR_PackageFileManager/PackageFileManager2.php Thu Jul 28 14:02:45 2005 @@ -17,7 +17,7 @@ * @author Greg Beaver <cellog@php.net> * @copyright 2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: PackageFileManager2.php,v 1.6 2005/07/28 17:59:14 cellog Exp $ + * @version CVS: $Id: PackageFileManager2.php,v 1.7 2005/07/28 18:02:45 cellog Exp $ * @link http://pear.php.net/package/PEAR_PackageFileManager * @since File available since Release 1.6.0 */ @@ -257,15 +257,15 @@ 'm4' => 'src', 'w32' => 'src', 'dll' => 'ext', - 'php' => 'php', - 'html' => 'doc', - '*' => 'data', + 'php' => 'php', + 'html' => 'doc', + '*' => 'data', ), 'dir_roles' => array( - 'docs' => 'doc', - 'examples' => 'doc', - 'tests' => 'test', + 'docs' => 'doc', + 'examples' => 'doc', + 'tests' => 'test', ), 'exceptions' => array(), 'installexceptions' => array(), @@ -981,17 +981,17 @@ } extract($this->_options); $ret = array(); - foreach($struc as $dir => $files) { - if (false && $dir === '/') { + foreach($struc as $dir => $files) { + if (false && $dir === '/') { // global directory role? overrides all exceptions except file exceptions if (isset($dir_roles['/'])) { $role = $dir_roles['/']; } return $this->_getSimpleDirTag($struc[$dir], $role, ''); - } else { - // directory - if (!isset($files['file'])) { - // contains only directories + } else { + // directory + if (!isset($files['file'])) { + // contains only directories if (isset($dir_roles[$_curdir . $dir])) { $myrole = $dir_roles[$_curdir . $dir]; } else { @@ -1002,24 +1002,24 @@ $recurdir = ''; } $this->_getSimpleDirTag($files, $myrole, $recurdir); - } else { - // contains files - $myrole = ''; - if (!$role) - { - $myrole = false; - if (isset($exceptions[$files['path']])) { - $myrole = $exceptions[$files['path']]; - } elseif (isset($roles[$files['ext']])) { - $myrole = $roles[$files['ext']]; - } else { + } else { + // contains files + $myrole = ''; + if (!$role) + { + $myrole = false; + if (isset($exceptions[$files['path']])) { + $myrole = $exceptions[$files['path']]; + } elseif (isset($roles[$files['ext']])) { + $myrole = $roles[$files['ext']]; + } else { $myrole = $roles['*']; } - } else { + } else { $myrole = $role; - if (isset($exceptions[$files['path']])) { - $myrole = $exceptions[$files['path']]; - } + if (isset($exceptions[$files['path']])) { + $myrole = $exceptions[$files['path']]; + } } $test = explode('/', $files['path']); foreach ($test as $subpath) { @@ -1028,8 +1028,8 @@ array('path' => $files['path'])); } } - $atts = array('role' => $myrole); - $diradd = dirname($files['path']); + $atts = array('role' => $myrole); + $diradd = dirname($files['path']); $this->addFile($diradd == '.' ? '/' : $diradd, $files['file'], $atts); if (isset($replacements[$files['path']])) { foreach ($replacements[$files['path']] as $task) { @@ -1041,10 +1041,10 @@ $this->addTaskToFile($files['path'], $task); } } - } - } - } - return; + } + } + } + return; } /** @@ -1063,41 +1063,41 @@ return $struc; } extract($this->_options); - foreach($struc as $dir => $files) { - if ($dir === '/') { + foreach($struc as $dir => $files) { + if ($dir === '/') { // global directory role? overrides all exceptions except file exceptions if (isset($dir_roles['/'])) { $role = $dir_roles['/']; } return $this->_getDirTag($struc[$dir], $role, ''); - } else { - // non-global directory - if (!isset($files['file'])) { - // contains only other directories - $myrole = ''; + } else { + // non-global directory + if (!isset($files['file'])) { + // contains only other directories + $myrole = ''; if (isset($dir_roles[$_curdir . $dir])) { $myrole = $dir_roles[$_curdir . $dir]; } elseif ($role) { $myrole = $role; } $this->_getDirTag($files, $myrole, $_curdir . $dir . '/'); - } else { - // contains files - $myrole = ''; - if (!$role) { - $myrole = false; - if (isset($exceptions[$files['path']])) { - $myrole = $exceptions[$files['path']]; - } elseif (isset($roles[$files['ext']])) { - $myrole = $roles[$files['ext']]; - } else { + } else { + // contains files + $myrole = ''; + if (!$role) { + $myrole = false; + if (isset($exceptions[$files['path']])) { + $myrole = $exceptions[$files['path']]; + } elseif (isset($roles[$files['ext']])) { + $myrole = $roles[$files['ext']]; + } else { $myrole = $roles['*']; } - } else { + } else { $myrole = $role; - if (isset($exceptions[$files['path']])) { - $myrole = $exceptions[$files['path']]; - } + if (isset($exceptions[$files['path']])) { + $myrole = $exceptions[$files['path']]; + } } if (isset($installexceptions[$files['path']])) { $bi = $installexceptions[$files['path']]; @@ -1111,7 +1111,7 @@ array('path' => $files['path'])); } } - $atts = + $atts = array('role' => $myrole, 'baseinstalldir' => $bi, ); @@ -1121,7 +1121,7 @@ $atts['md5sum'] = $md5sum; } } - $diradd = dirname($files['path']); + $diradd = dirname($files['path']); $this->addFile($diradd == '.' ? '/' : $diradd, $files['file'], $atts); if (isset($replacements[$files['path']])) { foreach ($replacements[$files['path']] as $task) { @@ -1133,10 +1133,10 @@ $this->addTaskToFile($files['path'], $task); } } - } - } - } - return; + } + } + } + return; } /**
« previous php.pear.cvs (#33440) next »