[zi-cvs] packages/com.zzoss.package.lib Package.php,1.15,1.16
Sandro Zic <[email protected]> Mon, 17 May 2004 09:55:25 +0000
| Newsgroups | gmane.comp.php.zzoss.installer.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/zzossinstaller/packages/com.zzoss.package.lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8203/com.zzoss.package.lib
Modified Files:
Package.php
Log Message:
make sure that update of app, esp. installer, works also if distribution version has changed
Index: Package.php
===================================================================
RCS file: /cvsroot/zzossinstaller/packages/com.zzoss.package.lib/Package.php,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** Package.php 6 May 2004 12:32:23 -0000 1.15
--- Package.php 17 May 2004 09:55:23 -0000 1.16
***************
*** 83,90 ****
}
// check directory for tgz files
! if($dp = @opendir($src)) {
while (false !== ($file = readdir($dp))) {
! $file = $src.$file;
! ZZOSS_Package::extractBundle($file, $dest, $backup_dest);
}
closedir($dp);
--- 83,90 ----
}
// check directory for tgz files
! if(is_dir($src) && $dp = opendir($src)) {
while (false !== ($file = readdir($dp))) {
! $file = $src.$file;
! ZZOSS_Package::extractBundle($file, $dest, $backup_dest);
}
closedir($dp);
***************
*** 146,150 ****
$bundle_tgz = $distri_name.'.'.$app_name.'.bundle-'.$app_version.'.tgz';
! if($dp = @opendir($dir_src)) {
while (false !== ($entry = readdir($dp))) {
// make sure that we do not include the bundle or the instant bundle
--- 146,150 ----
$bundle_tgz = $distri_name.'.'.$app_name.'.bundle-'.$app_version.'.tgz';
! if(is_dir($dir_src) && $dp = opendir($dir_src)) {
while (false !== ($entry = readdir($dp))) {
// make sure that we do not include the bundle or the instant bundle
***************
*** 326,330 ****
// try to copy tgz files
! if($dp = @opendir($src)) {
while (false !== ($file2 = readdir($dp))) {
$parts = pathinfo($file2);
--- 326,330 ----
// try to copy tgz files
! if(is_dir($src) && $dp = opendir($src)) {
while (false !== ($file2 = readdir($dp))) {
$parts = pathinfo($file2);
***************
*** 365,369 ****
}
// check source dir and extract all tgz's to modules
! if($dp = @opendir($src)) {
while (false !== ($file = readdir($dp))) {
$parts = pathinfo($file);
--- 365,369 ----
}
// check source dir and extract all tgz's to modules
! if(is_dir($src) && $dp = opendir($src)) {
while (false !== ($file = readdir($dp))) {
$parts = pathinfo($file);
-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click