[zi-cvs] packages/com.zzoss.installer.lib Utils.php,1.9,1.10

Sandro Zic <[email protected]> Mon, 17 May 2004 09:55:25 +0000
Newsgroups gmane.comp.php.zzoss.installer.cvs
Message-ID <[email protected]>
Update of /cvsroot/zzossinstaller/packages/com.zzoss.installer.lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8203/com.zzoss.installer.lib

Modified Files:
	Utils.php 
Log Message:
make sure that update of app, esp. installer, works also if distribution version has changed

Index: Utils.php
===================================================================
RCS file: /cvsroot/zzossinstaller/packages/com.zzoss.installer.lib/Utils.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** Utils.php	6 Apr 2004 16:40:11 -0000	1.9
--- Utils.php	17 May 2004 09:55:22 -0000	1.10
***************
*** 53,57 ****
      // removes directory recursively, even if non-empty 
  	function rmdir ($dirName) { 
! 		if($d = @opendir ($dirName)) {
  			while($entry = @readdir($d)) { 
  				if ($entry != "." && $entry != ".." && $entry != "") { 
--- 53,57 ----
      // removes directory recursively, even if non-empty 
  	function rmdir ($dirName) { 
! 		if(is_dir($dirName) && $d = opendir ($dirName)) {
  			while($entry = @readdir($d)) { 
  				if ($entry != "." && $entry != ".." && $entry != "") { 
***************
*** 76,81 ****
  	function mkdir ( $path ) 
  	{
! 		// fix incorrect path
! 		$path = ZZOSS_InstallerUtils::fixPath( $path );
  		
  		// split data path in directories 
--- 76,81 ----
  	function mkdir ( $path ) 
  	{
! 		// fix incorrect path
! 		$path = ZZOSS_InstallerUtils::fixPath( $path );
  		
  		// split data path in directories 



-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click