mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[doc] add comment explaining situation
This commit is contained in:
parent
249994785f
commit
5f2f262c57
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue