OSDN Git Service

[initcpio] Refactor file-writing
authorAdriaan de Groot <groot@kde.org>
Tue, 21 Sep 2021 11:39:29 +0000 (13:39 +0200)
committerAdriaan de Groot <groot@kde.org>
Tue, 21 Sep 2021 11:39:29 +0000 (13:39 +0200)
commita4c714238fe1666814309efee861ed1564acb1a3
tree1d585d43b0aa136253fedc6c83c4c99a5443640c
parent12cd9dd5b22a9274a2486df656b81232b973ae3c
[initcpio] Refactor file-writing

- iterate over the lines of the source file, rather
  than over indexes, and make clear that the hooks, modules and files
  lines are replaced, rather than merged.
- this calls write() more often, but it's only a few lines
src/modules/initcpiocfg/main.py