diff --git a/lib/omnibus/packagers/rpm.rb b/lib/omnibus/packagers/rpm.rb index c873f9028..8cbdb311f 100644 --- a/lib/omnibus/packagers/rpm.rb +++ b/lib/omnibus/packagers/rpm.rb @@ -391,12 +391,12 @@ def create_rpm_file # # Convert the path of a file in the staging directory to an entry for use in the spec file. - # + # Exclude directories owned by the filesystem package. # @return [String] # 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.gsub!('"', '')