# HG changeset patch # User Rik # Date 1530556746 25200 # Node ID 60e89abe0e611ab50280e9c4dab2c53e4a7f0bfa # Parent 222e23e5e7c18dec058632eaf93fcc2926c39f57 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. diff -r 222e23e5e7c1 -r 60e89abe0e61 scripts/pkg/pkg.m --- 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)