Handle missing files correctly when checking for altered sources
This may happen when checking out older versions or parallel branches
This commit is contained in:
parent
d9efb53fc5
commit
b3797c95ea
|
@ -54,7 +54,10 @@ class FileChecker(threading.Thread):
|
||||||
if self.checkmodules:
|
if self.checkmodules:
|
||||||
self._addModules()
|
self._addModules()
|
||||||
for path, timestamp in self.timestamps.items():
|
for path, timestamp in self.timestamps.items():
|
||||||
if os.stat(path).st_mtime != timestamp:
|
try:
|
||||||
|
if os.stat(path).st_mtime != timestamp:
|
||||||
|
return False
|
||||||
|
except FileNotFoundError:
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue