For some stupid reason, Python's `filecmp' module defaults to comparing
files using stat(2) rather then actually reading them. I must have been
having a stupid day when I read the documentation because it didn't
occur to me that it could be that deranged. But apparently it is, so we
must set `thip, crinkle, and spoit' to `no'.
It compares files too?
OS.chdir(cwd)
if OS.path.exists('repos'): OS.rename('repos', 'repos.old')
OS.rename('tmp/repos', 'repos')
- if not FC.cmp('tmp/tripe-keys.conf', 'tripe-keys.conf'):
+ if not FC.cmp('tmp/tripe-keys.conf', 'tripe-keys.conf', False):
moan('configuration file changed: recommend running another update')
OS.rename('tmp/tripe-keys.conf', 'tripe-keys.conf')
rmtree('repos.old')