Skip to content

Commit 6f2883a

Browse files
committed
test
1 parent 69d87d6 commit 6f2883a

File tree

1 file changed

+7
-1
lines changed
  • resources/puppetlabs/lein-ezbake/template/global/ext

1 file changed

+7
-1
lines changed

resources/puppetlabs/lein-ezbake/template/global/ext/fpm.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,8 +350,14 @@
350350
shared_opts << "--url http://github.com/openvoxproject"
351351
shared_opts << "--architecture all"
352352

353-
puts "######## Replaces: #{options.replaces}"
354353
options.replaces.each do |pkg, version|
354+
# Strip the surrounding quotes since we add them in a certain way here.
355+
# We should probably just fix this in the core code by being smarter with
356+
# as-ruby-literaly, but someone more familiar with Clojure can do that part.
357+
pkg = pkg.delete_prefix("'").delete_suffix("'")
358+
version = version.delete_prefix("'").delete_suffix("'")
359+
puts "Replaces package: #{pkg}"
360+
puts "Replaces version: #{version}"
355361
if options.output_type == 'rpm'
356362
val = if version.nil? || version.empty?
357363
"'#{pkg}'"

0 commit comments

Comments
 (0)