Browse files

Merge pull request #5 from dpiddy/respect-manifest-mtime

mtime in manifest not being respected
  • Loading branch information...
2 parents 828776d + dc6124f commit 56f4771a99b1c6dccc8a0e5386b936c9c7847ebb @ddollar committed Oct 10, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/download_manifest.coffee
View
3 lib/download_manifest.coffee
@@ -24,7 +24,8 @@ datastore_hash_fetchers = (manifest, dir) ->
mkdirp path.dirname(filename), =>
fetch_url "#{process.env.ANVIL_HOST}/file/#{file_manifest["hash"]}", filename, (err) ->
fs.chmod filename, file_manifest.mode, (err) ->
- async_cb null, true
+ fs.utimes filename, file_manifest.mtime, file_manifest.mtime, (err) ->
+ async_cb null, true
datastore_link_fetchers = (manifest, dir) ->
fetchers = {}

0 comments on commit 56f4771

Please sign in to comment.