[zi-cvs] packages/com.zzoss.plugin.lib Plugin.php,1.19,1.20
Sandro Zic <[email protected]> Sat, 24 Apr 2004 16:19:45 +0000
| Newsgroups | gmane.comp.php.zzoss.installer.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/zzossinstaller/packages/com.zzoss.plugin.lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31662/com.zzoss.plugin.lib
Modified Files:
Plugin.php
Log Message:
create package tgz with dir in filelist
Index: Plugin.php
===================================================================
RCS file: /cvsroot/zzossinstaller/packages/com.zzoss.plugin.lib/Plugin.php,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** Plugin.php 24 Apr 2004 15:36:40 -0000 1.19
--- Plugin.php 24 Apr 2004 16:19:42 -0000 1.20
***************
*** 355,359 ****
}
! function includePlugins($plugins, $build = null)
{
$status = ZZOSS_PLUGIN_STATUS_UNDEFINED;
--- 355,359 ----
}
! function includePlugins($plugins, $plugin = null)
{
$status = ZZOSS_PLUGIN_STATUS_UNDEFINED;
***************
*** 361,377 ****
ob_start();
$this->log .= "* Processing plugins.\n";
! /*
! reset($this->sources);*/
! if(is_array($plugins)){
! foreach($plugins as $name => $params){/*
! // Iterate available sources
! if(!count($this->sources)){
! PEAR::raiseError('No plugin directory defined.');
! } else {*/
! if(!$build || ($name == $build["@"]["plugin"].'-'.$build["@"]["version"])) {
$status = $this->includePlugin($name, $params['file']);
! }
! /*}
! */}
}
/*
--- 361,376 ----
ob_start();
$this->log .= "* Processing plugins.\n";
!
! // not a build plugin
! if(is_null($plugin)) {
! if(is_array($plugins)){
! foreach($plugins as $name => $params){
$status = $this->includePlugin($name, $params['file']);
! }
! }
! } else {
! // it should be a specific plugin
! $name = $plugin["@"]["plugin"].'-'.$plugin["@"]["version"];
! $status = $this->includePlugin($name, $plugins[$name]['file']);
}
/*
***************
*** 518,521 ****
--- 517,522 ----
$plugin_params[$this->package['name'].'-'.$this->package['release']['version']]['file'] = $file_path;
$plugin_params[$this->package['name'].'-'.$this->package['release']['version']]['name'] = $this->package['name'];
+ // remember the available versions
+ //$plugin_params[$this->package['name']][] = $this->package['release']['version'];
if(!isset($file['@']['role'])){
-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297