(path)
| 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? |