[zi-cvs] packages/com.zzoss.installer.lib Registry.php,1.28,1.29
Sandro Zic <[email protected]> Mon, 05 Apr 2004 08:23:14 +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-serv28967/com.zzoss.installer.lib
Modified Files:
Registry.php
Log Message:
make full/minimum install work
Index: Registry.php
===================================================================
RCS file: /cvsroot/zzossinstaller/packages/com.zzoss.installer.lib/Registry.php,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -d -r1.28 -r1.29
*** Registry.php 3 Apr 2004 16:57:09 -0000 1.28
--- Registry.php 5 Apr 2004 08:23:12 -0000 1.29
***************
*** 1516,1519 ****
--- 1516,1556 ----
}
+ function setPkgsActionsPreselect($profile)
+ {
+ // preselect plugins
+ $this->setPackageType('plugin');
+ $a = array();
+ $this->registerPackages();
+ $packages = $this->getPackages();
+
+ if(is_array($packages) && count($packages)) {
+ foreach($packages as $package) {
+ if($profile == 'full') {
+ $a[$package["id"]] = 'I';
+ } elseif($profile == 'minimum' && $package["install"]["required"]) {
+ $a[$package["id"]] = 'I';
+ }
+ }
+ }
+ $this->setPackagesActions($a);
+
+ // preselect packages
+ $this->setPackageType('package');
+ $a = array();
+ $this->registerPackages();
+ $packages = $this->getPackages();
+
+ if(is_array($packages) && count($packages)) {
+ foreach($packages as $package) {
+ if($profile == 'full') {
+ $a[$package["id"]] = 'I';
+ } elseif($profile == 'minimum' && $package["install"]["required"]) {
+ $a[$package["id"]] = 'I';
+ }
+ }
+ }
+ $this->setPackagesActions($a);
+ }
+
function updatePackagesActions($packages_new, $application = NULL, $distribution = NULL)
{
-------------------------------------------------------
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