[doc] add comment explaining situation

This commit is contained in:
Laurent Peuch 2018-05-12 03:13:03 +02:00
parent 249994785f
commit 5f2f262c57

View file

@ -809,6 +809,9 @@ def _process_regen_conf(system_conf, new_conf=None, save=True):
elif new_conf:
try:
# From documentation:
# Raise an exception if an os.stat() call on either pathname fails.
# (os.stats returns a series of information from a file like type, size...)
copy_succeed = os.path.samefile(system_conf, new_conf)
except:
copy_succeed = False