class KPM::BaseArtifact

def update_destination_path(info, destination_path)

def update_destination_path(info, destination_path)
  # In case LATEST was specified, use the actual version as the directory name
  destination_path = KPM::root if destination_path.nil?
  plugin_dir, version_dir = File.split(destination_path)
  destination_path = Pathname.new(plugin_dir).join(info[:version]).to_s if version_dir == 'LATEST' && !info[:version].nil?
  destination_path
end