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

Don't replace files when they will not be updated #194

Merged
merged 1 commit into from
Jan 24, 2016

Conversation

KitaitiMakoto
Copy link
Contributor

Hi,

Updating files only when their contents will be updated is nice idea. I wrote patch for that.
Need I write test? If yes, we need to run test before and after running Itamae and it look over the top to me. That's why this pull request doesn't include test.

Background of this patch is:
I defined notifies to execute restorecon to file and template resources. But current Itamae doesn't kick notifies if contents of files are not updated in spite of the files are replaced with files whose contents are the same and SELinux security contexts are changed. If this patch is applied, Itamae doesn't touch files if they will not be updated, so security context will not be changed.

Could you consider the request?
Thanks.

@smlx
Copy link

smlx commented Jan 24, 2016

This probably addresses #174

@ryotarai
Copy link
Member

Thank you!

ryotarai added a commit that referenced this pull request Jan 24, 2016
Don't replace files when they will not be updated
@ryotarai ryotarai merged commit 56fd435 into itamae-kitchen:master Jan 24, 2016
@KitaitiMakoto KitaitiMakoto deleted the identical-file branch January 24, 2016 05:59
@KitaitiMakoto
Copy link
Contributor Author

Thank you for merging.

@ryotarai
Copy link
Member

ryotarai commented Feb 3, 2016

released in v1.9.3

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.

3 participants