MCPcopy Create free account
hub / github.com/apache/arrow / update_content

Method update_content

dev/tasks/linux-packages/package-task.rb:585–595  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

583 end
584
585 def update_content(path)
586 if File.exist?(path)
587 content = File.read(path, encoding: "UTF-8")
588 else
589 content = ""
590 end
591 content = yield(content)
592 File.open(path, "w") do |file|
593 file.puts(content)
594 end
595 end
596
597 def update_debian_changelog
598 return unless enable_apt?

Callers

nothing calls this directly

Calls 3

exist?Method · 0.80
readMethod · 0.45
openMethod · 0.45

Tested by

no test coverage detected