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:
parent
f739a0fc6e
commit
99873775ba
1 changed files with 2 additions and 1 deletions
3
state.py
3
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue