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

Fixes #175 - Staging does not clear previous files. #202

Merged
merged 1 commit into from
Mar 27, 2014
Merged

Conversation

jsuereth
Copy link
Member

  • Use sync when copying to staging directory
  • Add test to make sure incrementally removing files shows up correctly.

NOTE: we may need to feed this through all our staging, e.g. when generating
MSIs or RPMs or DEBs.

Fixes #175 (Not sure why github requires that here as well as title...)

Review by @muuki88 or @aparkinson

* Use sync when copying to staging directory
* Add test to make sure incrementally removing files shows up correctly.

NOTE: we may need to feed this through all our staging, e.g. when generating
MSIs or RPMs or DEBs.
private[this] def stageFiles(config: String)(cacheDirectory: File, to: File, mappings: Seq[(File, String)]): Unit = {
val cache = cacheDirectory / ("packager-mappings-" + config)
val copies = mappings map {
case (file, path) => file -> (to / path)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the variable names 👍

@muuki88
Copy link
Contributor

muuki88 commented Mar 26, 2014

Only one small question. Besides that LGTM
(The fix is really rather small)

muuki88 added a commit that referenced this pull request Mar 27, 2014
Fixes #175 - Staging does not clear previous files.
@muuki88 muuki88 merged commit a83b884 into master Mar 27, 2014
@muuki88 muuki88 deleted the wip/fix-175 branch March 27, 2014 08:48
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.

Staging does not clear out previous files
2 participants