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.]
This commit is contained in:
Robert L. Bocchino Jr 2016-11-23 15:50:33 -08:00 committed by Avery Pennarun
commit 99873775ba

View file

@ -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)