lib/upgrade.rb in dev_tasks-0.0.50 vs lib/upgrade.rb in dev_tasks-0.0.51
- old
+ new
@@ -16,10 +16,12 @@
}
if(defined?(DEV_TASKS))
if(DEV_TASKS[:dependencies].has_key?(:source))
DEV_TASKS[:dependencies][:source].each{|source_dep|
- wrk=source_dep.gsub("/dep/","/wrk")
+ wrk=""
+ parts=source_dep.split('/develop/')
+ wrk=parts[0].gsub("/dep/","/wrk") if parts.length > 0
self.add "<%rake('#{wrk}')%>" if(Dir.exists?(wrk))
dest = "./dep/#{File.basename(source_dep)}"
if(!File.exists?(dest))
\ No newline at end of file