Skip to content

Commit

Permalink
exclude directories owned by the filesystem package
Browse files Browse the repository at this point in the history
hacky see: chef#666

could really do with omnibus passing in config file options
much as the brilliant fpm does
  • Loading branch information
Tom Ashley committed Aug 9, 2016
1 parent ba2f4e0 commit 8db98e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/omnibus/packagers/rpm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ def create_rpm_file
#
def build_filepath(path)
filepath = rpm_safe("/" + path.gsub("#{build_dir}/", ""))
return if config_files.include?(filepath)
return if config_files.include?(filepath) || filesystem_directories.include?(filepath)
full_path = build_dir + filepath.gsub("[%]", "%")
# FileSyncer.glob quotes pathnames that contain spaces, which is a problem on el7
full_path.delete!('"')
Expand Down

0 comments on commit 8db98e3

Please sign in to comment.