Patch Installer.php.patch for apd Bug #61648
Patch version 2012-11-15 12:35 UTC
Return to Bug #61648 |
Download this patch
Patch Revisions:
Developer: paulie4@gmail.com
--- Installer.php~ 2012-01-06 00:05:03.000000000 +0000
+++ Installer.php 2012-11-15 12:31:47.495562295 +0000
@@ -245,6 +245,9 @@
// {{{ assemble the destination paths
switch ($atts['role']) {
case 'src':
+ $this->source_files++;
+ $dest_dir = dirname($this->pkginfo->getPackageFile());
+ break;
case 'extsrc':
$this->source_files++;
return;
@@ -322,6 +325,8 @@
return $this->raiseError("file $orig_file does not exist",
PEAR_INSTALLER_FAILED);
}
+ if (is_dir($orig_file))
+ return; // directories shouldn't be in here?
if (!@copy($orig_file, $dest_file)) {
return $this->raiseError("failed to write $dest_file: $php_errormsg",
|