mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Improve semantics as suggested by decentral1se
This commit is contained in:
parent
46e388460c
commit
9d63a067be
1 changed files with 2 additions and 2 deletions
|
@ -2322,8 +2322,8 @@ def backup_delete(name):
|
|||
files_to_delete = [archive_file, info_file]
|
||||
|
||||
# To handle the case where archive_file is in fact a symlink
|
||||
actual_archive = os.path.realpath(archive_file)
|
||||
if actual_archive != archive_file:
|
||||
if os.islink(archive_file):
|
||||
actual_archive = os.path.realpath(archive_file)
|
||||
files_to_delete.append(actual_archive)
|
||||
|
||||
for backup_file in files_to_delete:
|
||||
|
|
Loading…
Add table
Reference in a new issue