haikuporter icon indicating copy to clipboard operation
haikuporter copied to clipboard

Haikuporter makes too many assumptions about directories existing

Open kallisti5 opened this issue 3 months ago • 2 comments

Skipping unpack of xz-5.6.1.tar.gz
Cleaning up temporary directories ...
cp: cannot stat '/system/settings/fonts': No such file or directory

workaround:

diff --git a/HaikuPorter/ShellScriptlets.py b/HaikuPorter/ShellScriptlets.py
index 66881f7..71eb9cf 100644
--- a/HaikuPorter/ShellScriptlets.py
+++ b/HaikuPorter/ShellScriptlets.py
@@ -874,7 +874,9 @@ if ! [ -e boot/system/settings/network ]; then
 fi
 # copy font settings
 if ! [ -e boot/system/settings/fonts ]; then
-       cp -r /system/settings/fonts boot/system/settings/
+       if [ -e /system/settings/fonts ]; then
+               cp -r /system/settings/fonts boot/system/settings/
+       fi
 fi

kallisti5 avatar Mar 14 '24 20:03 kallisti5