From 99873775bab54d587abf5c4b3315f469fcf20df0 Mon Sep 17 00:00:00 2001 From: "Robert L. Bocchino Jr" Date: Wed, 23 Nov 2016 15:50:33 -0800 Subject: [PATCH] Revise file stamp in state.py Removed information (ctime) that was causing spurious "you modified it" warnings. [apenwarr: This was not quite right. ctime includes some things we don't want to care about, such as link count, so we have to remove it. But it also notices changes to st_uid, st_gid, and st_mode, which we do care about, so now we have to include those explicitly.] --- state.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/state.py b/state.py index f5be070..cf0c643 100644 --- a/state.py +++ b/state.py @@ -298,7 +298,8 @@ class File(object): return STAMP_DIR else: # a "unique identifier" stamp for a regular file - return str((st.st_ctime, st.st_mtime, st.st_size, st.st_ino)) + return str((st.st_mtime, st.st_size, st.st_ino, + st.st_mode, st.st_uid, st.st_gid)) def nicename(self): return relpath(os.path.join(vars.BASE, self.name), vars.STARTDIR)