Permalink
Browse files

Replace % with [%] to make rpm not expand macros

  • Loading branch information...
1 parent 85241b6 commit e0472f3945c5a3a883a88ff9ce6c10951c3d0311 @jwittkoski jwittkoski committed Sep 25, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 templates/rpm.erb
View
@@ -117,12 +117,14 @@ fi
# Replace [ with [\[] to make rpm not use globs
# Replace * with [*] to make rpm not use globs
# Replace ? with [?] to make rpm not use globs
+ # Replace % with [%] to make rpm not expand macros
files.collect { |f| "/#{f}" } \
.reject { |f| config_files.include?(f) } \
.collect { |f| f[/\s/] and "\"#{f}\"" or f } \
.collect { |f| f.gsub("[", "[\\[]") } \
.collect { |f| f.gsub("*", "[*]") } \
.collect { |f| f.gsub("?", "[?]") } \
+ .collect { |f| f.gsub("%", "[%]") } \
.join("\n")
#.collect { |f| File.join(prefix, f) } \
%>

0 comments on commit e0472f3

Please sign in to comment.