|
@@ 1470-1471 (lines=2) @@
|
| 1467 |
|
} |
| 1468 |
|
elseif ($action['type'] == 'create-file') |
| 1469 |
|
{ |
| 1470 |
|
if (!mktree(dirname($action['destination']), 0755) || !is_writable(dirname($action['destination']))) |
| 1471 |
|
$failure |= !mktree(dirname($action['destination']), 0777); |
| 1472 |
|
|
| 1473 |
|
// Create an empty file. |
| 1474 |
|
package_put_contents($action['destination'], package_get_contents($action['source']), $testing_only); |
|
@@ 1489-1490 (lines=2) @@
|
| 1486 |
|
} |
| 1487 |
|
elseif ($action['type'] == 'require-file') |
| 1488 |
|
{ |
| 1489 |
|
if (!mktree(dirname($action['destination']), 0755) || !is_writable(dirname($action['destination']))) |
| 1490 |
|
$failure |= !mktree(dirname($action['destination']), 0777); |
| 1491 |
|
|
| 1492 |
|
package_put_contents($action['destination'], package_get_contents($action['source']), $testing_only); |
| 1493 |
|
|
|
@@ 1510-1511 (lines=2) @@
|
| 1507 |
|
} |
| 1508 |
|
elseif ($action['type'] == 'move-file') |
| 1509 |
|
{ |
| 1510 |
|
if (!mktree(dirname($action['destination']), 0755) || !is_writable(dirname($action['destination']))) |
| 1511 |
|
$failure |= !mktree(dirname($action['destination']), 0777); |
| 1512 |
|
|
| 1513 |
|
$failure |= !rename($action['source'], $action['destination']); |
| 1514 |
|
} |