mirror of
https://forge.fsky.io/oneflux/omegafox.git
synced 2026-02-10 02:02:03 -08:00
correct typos
This commit is contained in:
parent
1a1deb8c24
commit
440e8083f4
1 changed files with 11 additions and 12 deletions
|
|
@ -30,15 +30,15 @@ def add_includes_to_package(package_file, includes, fonts, new_file, target):
|
|||
target=target,
|
||||
)
|
||||
|
||||
# Move contents out of testfox folder if it exists
|
||||
old_testfox_dir = os.path.join(temp_dir, 'testfox')
|
||||
testfox_dir = os.path.join(temp_dir, 'testfox-folder')
|
||||
if os.path.exists(old_testfox_dir):
|
||||
# Rename testfox_dir
|
||||
os.rename(old_testfox_dir, testfox_dir)
|
||||
for item in os.listdir(testfox_dir):
|
||||
shutil.move(os.path.join(testfox_dir, item), temp_dir)
|
||||
os.rmdir(testfox_dir)
|
||||
# Move contents out of omegafox folder if it exists
|
||||
old_omegafox_dir = os.path.join(temp_dir, 'omegafox')
|
||||
omegafox_dir = os.path.join(temp_dir, 'omegafox-folder')
|
||||
if os.path.exists(old_omegafox_dir):
|
||||
# Rename omegafox_dir
|
||||
os.rename(old_omegafox_dir, omegafox_dir)
|
||||
for item in os.listdir(omegafox_dir):
|
||||
shutil.move(os.path.join(omegafox_dir, item), temp_dir)
|
||||
os.rmdir(omegafox_dir)
|
||||
|
||||
# Create target_dir
|
||||
target_dir = temp_dir
|
||||
|
|
@ -66,9 +66,8 @@ def add_includes_to_package(package_file, includes, fonts, new_file, target):
|
|||
|
||||
# Add hardened-malloc
|
||||
shutil.copy2(
|
||||
os.path.join('libhadened_malloc.so'),
|
||||
os.path.join(target_dir, 'libhardened_malloc.so'),
|
||||
dirs_exist_ok=True,
|
||||
os.path.join('libhardened_malloc.so'),
|
||||
os.path.join(target_dir, 'libhardened_malloc.so')
|
||||
)
|
||||
|
||||
# Remove unneeded paths
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue