mirror of
https://forge.fsky.io/oneflux/omegafox.git
synced 2026-02-10 13:22:05 -08:00
Extract inner tar in packager
This commit is contained in:
parent
8a1abfb9a5
commit
9f6d55f39b
1 changed files with 2 additions and 2 deletions
|
|
@ -19,9 +19,9 @@ def add_includes_to_package(package_file, includes, fonts, new_file, target):
|
||||||
run(join(['7z', 'x', package_file, f'-o{temp_dir}']), exit_on_fail=False)
|
run(join(['7z', 'x', package_file, f'-o{temp_dir}']), exit_on_fail=False)
|
||||||
# Delete package_file
|
# Delete package_file
|
||||||
os.remove(package_file)
|
os.remove(package_file)
|
||||||
if package_file.endswith('.tar.bz2'):
|
if package_file.endswith('.tar.xz'):
|
||||||
# Rerun on the tar file
|
# Rerun on the tar file
|
||||||
package_tar = package_file[:-4] # Remove .bz2
|
package_tar = package_file[:-3] # Remove ".xz"
|
||||||
return add_includes_to_package(
|
return add_includes_to_package(
|
||||||
package_file=os.path.join(temp_dir, package_tar),
|
package_file=os.path.join(temp_dir, package_tar),
|
||||||
includes=includes,
|
includes=includes,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue