jimweirich / rake

A make-like build utility for Ruby.
http://rake.rubyforge.org/
1.1k stars 10 forks source link

wrong task_type in lib/rake/packagetask.rb Line 148 #276

Closed Muenze closed 9 years ago

Muenze commented 10 years ago

Hello,

on line 148 the package_dir_path task is a file task, but should be a directory task. If I build my package from scratch all is working correctly, if I execute the task again nothing happens, also correct. If I then touch any of my source files they change and my package has to be rebuild, that also works. But if I then execute my task again it removes and links the package files every time I execute the task. Its because one or more of my package files are newer then my directory "package_dir_path", and because it's a file task and not a directory task this matters and the package_dir_path action is executed every time.

If I change line 148 to a directory task, everything works.

As a hotfix you can create a directory task with the proper name before creating the PackageTask.

Sorry for my english, normally I dont write much text in english