extractor: backup state file when updating and fsync
commit3dbda3278c17439877ed22a6df36b312eb458688
authorEric Wong <e@80x24.org>
Tue, 21 Mar 2017 21:12:37 +0000 (21 21:12 +0000)
committerEric Wong <e@80x24.org>
Tue, 21 Mar 2017 21:12:37 +0000 (21 21:12 +0000)
tree2e99c6a1788e847874b91c9d2b667b26b156d1a1
parent4a53e8e5fb26aaa3dbfad553680c70bf0fe4dde9
extractor: backup state file when updating and fsync

The state file is important, so try not to lose it by
creating a backup before git writes it, and fsync the
result ASAP since git does not consider the config file
important enough.
lib/Ssoma/Extractor.pm