[zi-cvs] packages/com.zzoss.installer.lib Registry.php,1.11,1.12

[email protected] Thu, 12 Feb 2004 02:36:42 -0800
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-serv24632/com.zzoss.installer.lib

Modified Files:
	Registry.php 
Log Message:
after-install package manager

Index: Registry.php
===================================================================
RCS file: /cvsroot/zzossinstaller/packages/com.zzoss.installer.lib/Registry.php,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** Registry.php	11 Feb 2004 14:41:58 -0000	1.11
--- Registry.php	12 Feb 2004 10:36:40 -0000	1.12
***************
*** 1382,1386 ****
              $xml["id"] = $id;
              $key = $xml["name"].'-'.$xml['release']['version'];
!             if($packages_application[$key]['@']['use'] == 'required') {
                  $xml["install"]["required"] = true;
              } else {
--- 1382,1386 ----
              $xml["id"] = $id;
              $key = $xml["name"].'-'.$xml['release']['version'];
!             if(isset($packages_application[$key]['@']['use']) && $packages_application[$key]['@']['use'] == 'required') {
                  $xml["install"]["required"] = true;
              } else {
***************
*** 1403,1407 ****
  		// save process queue
  		$file = $this->application_path.'installer'.DIRECTORY_SEPARATOR.'installation_packages_queue.reg';
!         return @unlink($file);
  	}
      
--- 1403,1411 ----
  		// save process queue
  		$file = $this->application_path.'installer'.DIRECTORY_SEPARATOR.'installation_packages_queue.reg';
!         if(file_exists($file)){
!             return @unlink($file);
!         }
!         
!         return false;
  	}
      
***************
*** 1427,1430 ****
--- 1431,1459 ----
  	}
      
+     function unsetPackagesRemote()
+ 	{
+ 		// save process queue
+ 		$file = $this->application_path.'installer'.DIRECTORY_SEPARATOR.'installation_packages_remote.reg';
+         if(file_exists($file)){
+             return @unlink($file);
+         }
+         
+         return false;
+ 	}
+     
+     function setPackagesRemote($pkgs)
+ 	{
+ 		// save process queue
+ 		$file = $this->application_path.'installer'.DIRECTORY_SEPARATOR.'installation_packages_remote.reg';
+ 		ZZOSS_InstallerUtils::serializeToFile( $file, $pkgs );
+ 	}
+ 
+     function getPackagesRemote()
+ 	{
+ 		// save process queue
+ 		$file = $this->application_path.'installer'.DIRECTORY_SEPARATOR.'installation_packages_remote.reg';
+         return ZZOSS_InstallerUtils::unserializeFromFile($file);
+ 	}
+ 
      // prepare package array from application.xml
      function getApplicationPackages()



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click