changeset 25540:6c2d3e9da742

maint: merge stable to default.
author Rik <rik@octave.org>
date Mon, 02 Jul 2018 11:39:36 -0700
parents a27ae22eb41d (current diff) 60e89abe0e61 (diff)
children 517c73173011
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 11:26:20 2018 -0700
+++ b/scripts/pkg/pkg.m	Mon Jul 02 11:39:36 2018 -0700
@@ -416,7 +416,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)