[Rant] Bug: packager not including a file

Kevin Burge kevin.burge at systemware.com
Mon Dec 19 12:26:45 EST 2005


Here's my rant file:

files = sys['**/*.rb', '**/*.rant']
name = "raven"

task :default => :deploy

pkg = nil
if Env.on_windows?
  import 'package/zip'
  pkg = gen Package::Zip, name, :files => files
else
  import 'package/tgz'
  pkg = gen Package::Tgz, name, :files => files
end

desc "Deploy raven"
task :deploy => pkg.path do
  if Env.on_windows?
    sys "pscp -p -q -i #{sys.sp var[:cache_web_ssh_key]} #{pkg.path} 
#{var[:cache_web_user]}@#{var :cache_web_host}:#{var 
:cache_web_path}/system/"
  else
    sys "scp #{pkg.path} #{var[:cache_web_user]}@#{var 
:cache_web_host}:#{var :cache_web_path}/system/"
  end
end

the file it's ignored is "raven.rb", in the same directory as sub.rant.  
I renamed to "r.rb", and it picked it up.  This is with 0.5.4.

Looks like in archive.rb it should be:

                @res_files.exclude(/^#{Regexp.escape @dist_path}(\/.*)?$/)

Yep, that fixed it.

Kevin

Please visit http://www.systemware.com/.



More information about the make-cafe mailing list