lib/vx/builder/script/cache.rb in vx-builder-0.0.9 vs lib/vx/builder/script/cache.rb in vx-builder-0.0.10

- old
+ new

@@ -44,10 +44,16 @@ end def url_for(env, branch) name = branch - key = env.cache_key.join("-").gsub(/[^a-z0-9_\-.]/, '-') + key = + if env.cache_key.empty? + "cache" + else + env.cache_key.join("-").gsub(/[^a-z0-9_\-.]/, '-') + end + "#{env.task.cache_url_prefix}/#{name}/#{key}.tgz" end def prepare(env) cmd = %{