Skip to content

Commit

Permalink
Remove postinstall files matching exclude regex
Browse files Browse the repository at this point in the history
Previous to this commit, postinstall files matching the provided exclude
regex were not removed from the postinstall list, but rather were just
prepended with '_'.  This caused an error since the script '_<original
filename>' doesn't exist in the definition.

This commit removes the files from the list of postinstall files if the
filename matches the provided regex
  • Loading branch information
ccaum committed Aug 4, 2012
1 parent 72b12ad commit 76fd16a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/veewee/provider/core/box/build.rb
Expand Up @@ -119,7 +119,7 @@ def filter_postinstall_files(options)
unless options["postinstall_exclude"].nil?
options["postinstall_exclude"].each do |p|
env.logger.info "Exclude pattern #{p}"
new_definition.postinstall_files.collect! { |f| f.match(p) ? f.gsub(/^/,"_"): f}
new_definition.postinstall_files.reject! { |f| f.match(p) }
end
end

Expand Down

0 comments on commit 76fd16a

Please sign in to comment.