cvs: pear-core(PEAR_1_4) /tests/PEAR_Command_Config setup.php.inc
| From: | Pierre-Alain Joye | Date: | Sat, 15 Jul 2006 00:30:30 +0000 |
| Subject: | cvs: pear-core(PEAR_1_4) /tests/PEAR_Command_Config setup.php.inc | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-4856@lists.php.net to get a copy of this message | ||
pajoye Sat Jul 15 00:30:30 2006 UTC
Modified files: (Branch: PEAR_1_4)
/pear-core/tests/PEAR_Command_Config setup.php.inc
Log:
- fix setup, downloaddir
http://cvs.php.net/viewvc.cgi/pear-core/tests/PEAR_Command_Config/setup.php.inc?r1=1.4&r2=1.4.2.1&diff_format=u
Index: pear-core/tests/PEAR_Command_Config/setup.php.inc
diff -u pear-core/tests/PEAR_Command_Config/setup.php.inc:1.4
pear-core/tests/PEAR_Command_Config/setup.php.inc:1.4.2.1
--- pear-core/tests/PEAR_Command_Config/setup.php.inc:1.4 Fri Feb 3 05:03:02 2006
+++ pear-core/tests/PEAR_Command_Config/setup.php.inc Sat Jul 15 00:30:30 2006
@@ -38,6 +38,14 @@
if (!is_dir($temp_path . DIRECTORY_SEPARATOR . 'cache')) {
mkdir($temp_path . DIRECTORY_SEPARATOR . 'cache');
}
+if (!is_dir($temp_path . DIRECTORY_SEPARATOR . 'temp')) {
+ mkdir($temp_path . DIRECTORY_SEPARATOR . 'temp');
+}
+if (!is_dir($temp_path . DIRECTORY_SEPARATOR . 'temp/downlaod')) {
+ mkdir($temp_path . DIRECTORY_SEPARATOR . 'temp/downlaod');
+}
+
+
// make the fake configuration - we'll use one of these and it should work
$config = serialize(array('master_server' => $server,
'preferred_state' => 'stable',
@@ -47,6 +55,8 @@
'data_dir' => $temp_path . DIRECTORY_SEPARATOR . 'data',
'doc_dir' => $temp_path . DIRECTORY_SEPARATOR . 'doc',
'test_dir' => $temp_path . DIRECTORY_SEPARATOR . 'test',
+ 'temp_dir' => $temp_path . DIRECTORY_SEPARATOR . 'temp',
+ 'download_dir' => $temp_path . DIRECTORY_SEPARATOR . 'temp/download',
'bin_dir' => $temp_path . DIRECTORY_SEPARATOR . 'bin',));
touch($temp_path . DIRECTORY_SEPARATOR . 'pear.conf');
$fp = fopen($temp_path . DIRECTORY_SEPARATOR . 'pear.conf', 'w');