diff --git a/src/shcode/ympbuild_header.sh b/src/shcode/ympbuild_header.sh index 91cea3a..5e8dba9 100755 --- a/src/shcode/ympbuild_header.sh +++ b/src/shcode/ympbuild_header.sh @@ -4,6 +4,7 @@ declare -r installdir="@buildpath@/output" declare -r jobs="-j@jobs@" export HOME="@buildpath@" export USER="root" +export PREFIX="/usr" export DESTDIR="$installdir" export INSTALL_ROOT="$installdir" declare -r YMPVER="@VERSION@" diff --git a/src/util/build.vala b/src/util/build.vala index 844f203..cfd3cac 100755 --- a/src/util/build.vala +++ b/src/util/build.vala @@ -231,9 +231,9 @@ public class builder { } if (need_install.length > 0) { if (get_bool("install")) { - if(install_main(need_install) ! = 0){ + if(install_main(need_install) != 0){ error_add(_("Packages build canceled.")); - }; + } } else { error_add(_("Packages is not installed: %s").printf(join(" ", need_install))); }