Oh come on Python.
This commit is contained in:
parent
9621fd4635
commit
f81f275b38
@ -49,11 +49,14 @@ def run():
|
|||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
root_mount_point = libcalamares.globalstorage.value("rootMountPoint")
|
root_mount_point = libcalamares.globalstorage.value("rootMountPoint")
|
||||||
log_source = libcalamares.job.configuration["srcLog"]
|
|
||||||
log_destination = libcalamares.job.configuration["destLog"]
|
|
||||||
|
|
||||||
# copy installation log before umount
|
if(libcalamares.job.configuration and
|
||||||
if(log_source):
|
libcalamares.job.configuration["srcLog"] and
|
||||||
|
libcalamares.job.configuration["destLog"]):
|
||||||
|
log_source = libcalamares.job.configuration["srcLog"]
|
||||||
|
log_destination = libcalamares.job.configuration["destLog"]
|
||||||
|
|
||||||
|
# copy installation log before umount
|
||||||
if(os.path.exists('{!s}'.format(log_source))):
|
if(os.path.exists('{!s}'.format(log_source))):
|
||||||
shutil.copy2('{!s}'.format(log_source), '{!s}/{!s}'.format(
|
shutil.copy2('{!s}'.format(log_source), '{!s}/{!s}'.format(
|
||||||
root_mount_point, log_destination))
|
root_mount_point, log_destination))
|
||||||
|
Loading…
Reference in New Issue
Block a user