changeset 25306:a6419af90031 stable

pkg: restore deletion of package archive downloaded from Octave Forge * pkg.m: Restore code to delete all downloaded files, whether they were downloaded to a temporary directory or not. Fixes regression introduced in cset 0cd7076a97c8.
author Mike Miller <mtmiller@octave.org>
date Tue, 24 Apr 2018 13:29:20 -0700
parents 47c803b4b8ae
children f2eb8bfcccb6
files scripts/pkg/pkg.m
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/pkg/pkg.m	Tue Apr 24 10:43:39 2018 -0700
+++ b/scripts/pkg/pkg.m	Tue Apr 24 13:29:20 2018 -0700
@@ -438,6 +438,7 @@
                  global_list, global_install);
 
       unwind_protect_cleanup
+        cellfun ("unlink", local_files);
         if (exist (tmp_dir, "file"))
           rmdir (tmp_dir, "s");
         endif