Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit e0472f3945c5a3a883a88ff9ce6c10951c3d0311 1 parent 85241b6
@jwittkoski jwittkoski authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  templates/rpm.erb
View
2  templates/rpm.erb
@@ -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) } \
%>
Please sign in to comment.
Something went wrong with that request. Please try again.