changeset 28877:cd2178d0e43b

pkg.m,build.m: capture output of rmdir() so that error is not thrown. * pkg.m, build.m: capture output of rmdir() so that error is not thrown.
author Rik <rik@octave.org>
date Thu, 08 Oct 2020 15:31:33 -0700
parents fb4477c3d399
children 2c5147c10bb0
files scripts/pkg/pkg.m scripts/pkg/private/build.m
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/pkg/pkg.m	Thu Oct 08 20:41:12 2020 +0200
+++ b/scripts/pkg/pkg.m	Thu Oct 08 15:31:33 2020 -0700
@@ -571,7 +571,7 @@
       unwind_protect_cleanup
         [~] = cellfun ("unlink", local_files);
         if (exist (tmp_dir, "file"))
-          rmdir (tmp_dir, "s");
+          [~] = rmdir (tmp_dir, "s");
         endif
       end_unwind_protect
 
--- a/scripts/pkg/private/build.m	Thu Oct 08 20:41:12 2020 +0200
+++ b/scripts/pkg/private/build.m	Thu Oct 08 15:31:33 2020 -0700
@@ -91,7 +91,7 @@
 
     tar (tar_path, package_root, builddir);
     gzip (tar_path, builddir);
-    rmdir (build_root, "s");
+    [~] = rmdir (build_root, "s");
 
     ## Currently does nothing because gzip() removes the original tar
     ## file but that should change in the future (bug #43431).