[zi-cvs] packages/com.zzoss.installer.lib Registry.php,1.31,1.32

Sandro Zic <[email protected]> Wed, 07 Apr 2004 08:41:16 +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-serv3906/com.zzoss.installer.lib

Modified Files:
	Registry.php 
Log Message:
replaced PEAR::raiseError() with trigger_error() for plugins RE

Index: Registry.php
===================================================================
RCS file: /cvsroot/zzossinstaller/packages/com.zzoss.installer.lib/Registry.php,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -d -r1.31 -r1.32
*** Registry.php	7 Apr 2004 08:23:27 -0000	1.31
--- Registry.php	7 Apr 2004 08:41:13 -0000	1.32
***************
*** 99,103 ****
      {
          if(!strlen($distribution)){
!             return PEAR::raiseError('Empty distribution.');
          }
          // test if "-" for version is contained
--- 99,103 ----
      {
          if(!strlen($distribution)){
!             return trigger_error('Empty distribution.');
          }
          // test if "-" for version is contained
***************
*** 111,115 ****
          /*
          if(!is_writeable($this->distribution_path)){
!             return PEAR::raiseError('Cannot write to '.$this->distribution_path);
          }
          */
--- 111,115 ----
          /*
          if(!is_writeable($this->distribution_path)){
!             return trigger_error('Cannot write to '.$this->distribution_path);
          }
          */
***************
*** 120,128 ****
      {
          if(!strlen($this->distribution_path)){
!             return PEAR::raiseError('Empty distribution path.');
          }
          
          if(!strlen($application)){
!             return PEAR::raiseError('Empty application.');
          }
          // test if "-" for version is contained
--- 120,128 ----
      {
          if(!strlen($this->distribution_path)){
!             return trigger_error('Empty distribution path.');
          }
          
          if(!strlen($application)){
!             return trigger_error('Empty application.');
          }
          // test if "-" for version is contained
***************
*** 133,137 ****
          /*
          if(!is_writeable($this->application_path)){
!             return PEAR::raiseError('Cannot write to '.$this->application_path);
          }
          */
--- 133,137 ----
          /*
          if(!is_writeable($this->application_path)){
!             return trigger_error('Cannot write to '.$this->application_path);
          }
          */
***************
*** 1280,1284 ****
  
          if(!is_dir($pkg_src)){
!             return PEAR::raiseError('Internal Error: Unknow '.$this->package_type.' source path. Seems like the '.$this->package_type.' registry has not been refreshed properly.');
          }
          if(is_dir($pkg_installed)){
--- 1280,1284 ----
  
          if(!is_dir($pkg_src)){
!             return trigger_error('Internal Error: Unknow '.$this->package_type.' source path. Seems like the '.$this->package_type.' registry has not been refreshed properly.');
          }
          if(is_dir($pkg_installed)){



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click