[zi-cvs] packages/com.zzoss.installer.lib Registry.php,1.27,1.28
Sandro Zic <[email protected]> Sat, 03 Apr 2004 16:57:12 +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-serv2552/com.zzoss.installer.lib
Modified Files:
Registry.php
Log Message:
don't show icon of plugins manager, if app has no plugins
Index: Registry.php
===================================================================
RCS file: /cvsroot/zzossinstaller/packages/com.zzoss.installer.lib/Registry.php,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -d -r1.27 -r1.28
*** Registry.php 3 Apr 2004 16:15:46 -0000 1.27
--- Registry.php 3 Apr 2004 16:57:09 -0000 1.28
***************
*** 1155,1158 ****
--- 1155,1179 ----
}
+ function hasPkgs($pkg_type = NULL, $application = NULL, $distribution = NULL)
+ {
+ if(!is_null($distribution)){
+ $this->setDistribution($distribution);
+ }
+ if(!is_null($application)){
+ $this->setApplication($application);
+ }
+
+ if(is_null($pkg_type)){
+ $pkg_type = $this->package_type;
+ }
+
+ $file = $this->application_path.'installer'.DIRECTORY_SEPARATOR.$pkg_type.'s_packages.reg';
+ $pkgs = ZZOSS_InstallerUtils::unserializeFromFile($file);
+ if(!is_array($pkgs) || !count($pkgs)){
+ return false;
+ }
+ return true;
+ }
+
function getPackagesResolve($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