cvs: php4 /pear/PEAR Packager.php
| From: | Thomas V.V.Cox | Date: | Sun, 19 Aug 2001 12:37:51 +0000 |
| Subject: | cvs: php4 /pear/PEAR Packager.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-575@lists.php.net to get a copy of this message | ||
cox Sun Aug 19 08:37:51 2001 EDT
Modified files:
/php4/pear/PEAR Packager.php
Log:
better error hanlding
Index: php4/pear/PEAR/Packager.php
diff -u php4/pear/PEAR/Packager.php:1.10 php4/pear/PEAR/Packager.php:1.11
--- php4/pear/PEAR/Packager.php:1.10 Sun Aug 19 08:30:24 2001
+++ php4/pear/PEAR/Packager.php Sun Aug 19 08:37:51 2001
@@ -17,7 +17,7 @@
// | Tomas V.V.Cox <cox@idecnet.com> |
// +----------------------------------------------------------------------+
//
-// $Id: Packager.php,v 1.10 2001/08/19 12:30:24 cox Exp $
+// $Id: Packager.php,v 1.11 2001/08/19 12:37:51 cox Exp $
require_once 'PEAR/Common.php';
@@ -155,13 +155,13 @@
}
}
//Maintain original file perms
- $orig_perms = fileperms($fname);
+ $orig_perms = @fileperms($fname);
if (!@copy($fname, $file)) {
$this->log(0, "could not copy $fname to $file");
} else {
$this->log(2, "+ copying from $fname to $file");
+ @chmod($file, $orig_perms);
}
- chmod($file, $orig_perms);
}
// XXX TODO: Rebuild the package file as the old method did?