Mercurial > octave
comparison scripts/pkg/private/build.m @ 28503:f480103d8333
Fix unlink() calls in package m-files for new syntax (bug #57830)
* pkg.m, build.m, uninstall.m: Call "[~] = unlink (...)" so that error is not
thrown and scripts continue even if there was no file to unlink.
author | Rik <rik@octave.org> |
---|---|
date | Thu, 25 Jun 2020 18:20:03 -0700 |
parents | bd51beb6205e |
children | cd2178d0e43b |
comparison
equal
deleted
inserted
replaced
28502:39e6308e4251 | 28503:f480103d8333 |
---|---|
93 gzip (tar_path, builddir); | 93 gzip (tar_path, builddir); |
94 rmdir (build_root, "s"); | 94 rmdir (build_root, "s"); |
95 | 95 |
96 ## Currently does nothing because gzip() removes the original tar | 96 ## Currently does nothing because gzip() removes the original tar |
97 ## file but that should change in the future (bug #43431). | 97 ## file but that should change in the future (bug #43431). |
98 unlink (tar_path); | 98 [~] = unlink (tar_path); |
99 endfor | 99 endfor |
100 | 100 |
101 endfunction | 101 endfunction |