summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanylo Dragan2013-03-21 19:50:54 (GMT)
committer Greg Anderson2013-03-21 19:50:54 (GMT)
commitf43e902a4fc810cfe1cd6c50beb8e0877c9c1150 (patch)
treecb6f13336c7bb74688d05b64229c6567c4d6311d
parentf79a3be37135d6baf7d4e95cc70bbe033b7a3fc1 (diff)
Issue #1914470 by Danylo Dragan: drush command pm-download doesn't preserve file modification time of project files
-rw-r--r--includes/filesystem.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/filesystem.inc b/includes/filesystem.inc
index 8c3699d..374c596 100644
--- a/includes/filesystem.inc
+++ b/includes/filesystem.inc
@@ -248,7 +248,7 @@ function _drush_recursive_copy($src, $dest) {
elseif (is_link($src)) {
symlink(readlink($src), $dest);
}
- elseif (copy($src, $dest) !== TRUE) {
+ elseif (!(copy($src, $dest) && touch($dest, filemtime($src)))) {
return FALSE;
}