Mercurial > octave
changeset 30700:a6dfda8450d6 stable
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.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Wed, 02 Feb 2022 10:50:44 +0100 |
parents | 7e8db64587a6 |
children | ab374e209146 36be88bf3525 |
files | scripts/pkg/private/configure_make.m |
diffstat | 1 files changed, 0 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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