Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add catalog functionality to prevent re-downloads #99

Merged
merged 1 commit into from
Sep 4, 2017
Merged

Add catalog functionality to prevent re-downloads #99

merged 1 commit into from
Sep 4, 2017

Conversation

mattlqx
Copy link
Contributor

@mattlqx mattlqx commented Aug 1, 2017

Creates a JSON catalog file with etag and md5 at time of download. This catalog is used on subsequent runs to determine whether the file needs redownloaded. Having this in place, how the etag is derived is irrelevant (as S3 can use several methods for generating it) and can be simply used as a remote change indicator. Local changes are determined by the stored md5.

Using this catalog becomes the default but it can be turned off via node attribute.

Also fixes issues with default owner/group always being null and the file resource always being updated if owner/group/mode were different than what the new file happened to be downloaded with.

@mattlqx
Copy link
Contributor Author

mattlqx commented Aug 1, 2017

Fixes #68

@joekiller joekiller merged commit b413c39 into adamsb6:master Sep 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants