From ec207884eade71313e70885fe375c4cbc7227adb Mon Sep 17 00:00:00 2001 From: "Dickson S. Guedes" Date: Mon, 23 May 2011 00:33:38 -0300 Subject: [PATCH] fixing #bundle to put files in right place inside zip --- lib/pgxn_utils/cli.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pgxn_utils/cli.rb b/lib/pgxn_utils/cli.rb index b8a2c9a..a5b6c42 100644 --- a/lib/pgxn_utils/cli.rb +++ b/lib/pgxn_utils/cli.rb @@ -71,7 +71,7 @@ module PgxnUtils if can_zip?(archive) Zippy.create(archive) do |zip| Dir["#{path}/**/**"].each do |file| - zip["#{extension_name}-#{config_options['version']}/#{file}"] = File.open(file) unless File.directory?(file) + zip["#{extension_name}-#{config_options['version']}/#{file.sub(path+'/','')}"] = File.open(file) unless File.directory?(file) end end say "Extension generated at: #{archive}" -- 2.39.5