mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-25 08:28:22 -04:00
[unpackfs] Stub of special handling for a single file
This commit is contained in:
parent
65b81f84a5
commit
d58fdaa2cd
1 changed files with 4 additions and 0 deletions
|
@ -303,6 +303,10 @@ class UnpackOperation:
|
|||
try:
|
||||
if entry.is_file():
|
||||
source = entry.source
|
||||
if entry.total <= 1:
|
||||
# If there is one file, *and* the target does not exist (as a file or dir)
|
||||
# but the dirname of the target does, we should copy just one file and rename.
|
||||
pass
|
||||
else:
|
||||
source = imgmountdir
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue