# HG changeset patch # User Markus Mützel # Date 1643795444 -3600 # Node ID a6dfda8450d660b3140eb92de061578f981bc34c # Parent 7e8db64587a6693bfab6d7fa7453030cea2b5fa4 pkg: Avoid unexpected error if configure or make fails. * scripts/pkg/private/configure_make.m: Avoid error about non-existent field. The field "dir" isn't set yet and the corresponding directory is created only later in install.m. So, there isn't anything to remove yet anyway. diff -r 7e8db64587a6 -r a6dfda8450d6 scripts/pkg/private/configure_make.m --- a/scripts/pkg/private/configure_make.m Tue Feb 01 20:03:51 2022 +0100 +++ b/scripts/pkg/private/configure_make.m Wed Feb 02 10:50:44 2022 +0100 @@ -84,7 +84,6 @@ cmd = ["cd '" src "'; " scenv " ./configure " flags]; [status, output] = shell (cmd, verbose); if (status != 0) - sts = rmdir (desc.dir, "s"); disp (output); error ("pkg: error running the configure script for %s", desc.name); endif @@ -101,7 +100,6 @@ [status, output] = shell (sprintf ("%s make --jobs %i --directory '%s'", scenv, jobs, src), verbose); if (status != 0) - sts = rmdir (desc.dir, "s"); disp (output); error ("pkg: error running 'make' for the %s package", desc.name); endif