lib/teapot/controller/fetch.rb in teapot-0.8.0 vs lib/teapot/controller/fetch.rb in teapot-0.8.1

- old
+ new

@@ -84,10 +84,14 @@ unless destination_path.exist? destination_path.make_symlink(local_path) end elsif package.external? - package_lock = lock_store.transaction(true){|store| store[package.name]} + package_lock = nil + + unless @options[:unlock] + package_lock = lock_store.transaction(true){|store| store[package.name]} + end log "Fetching #{package}...".color(:cyan) base_uri = URI(package.options[:source].to_s)