changeset 25539:60e89abe0e61 stable

pkg.m: Restore ability to use file glob patterns when specifying local pkg files (bug #54224). * pkg.m: Use glob, rather than exist, so that file patterns like '*' or '?' can be used in naming local files.
author Rik <rik@octave.org>
date Mon, 02 Jul 2018 11:39:06 -0700
parents 222e23e5e7c1
children 6c2d3e9da742 e5208e98ab92
files scripts/pkg/pkg.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/pkg/pkg.m	Mon Jul 02 15:47:19 2018 +0200
+++ b/scripts/pkg/pkg.m	Mon Jul 02 11:39:06 2018 -0700
@@ -413,7 +413,7 @@
         else
           ## If files do not exist, maybe they are not local files.
           ## Try to download them.
-          external_files_mask = ! cellfun (@exist, files, {"file"});
+          external_files_mask = cellfun (@(x) isempty (glob (x)), files);
           if (any (external_files_mask))
             [success, msg] = mkdir (tmp_dir);
             if (success != 1)