Mercurial > octave
changeset 33367:90fb783da787
maint: Merge stable to default.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Tue, 09 Apr 2024 14:51:49 +0200 |
parents | fb44a9db1bc6 (current diff) 31225b5d494d (diff) |
children | fc12e1f3cd5d ff7cb15e068d |
files | |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/path/savepath.m Mon Apr 08 21:43:05 2024 -0400 +++ b/scripts/path/savepath.m Tue Apr 09 14:51:49 2024 +0200 @@ -126,6 +126,11 @@ [pkg_user, pkg_system], "uniformoutput", false)]); + ## If there are packages without binaries (or without .m files), their + ## "archprefix" (or "dir") field might be empty. Remove empty paths before + ## trying to match the regular expression in the next step. + pkg_path(cellfun (@isempty, pkg_path)) = []; + ## Rely on Octave's initialization to include the pkg path elements. for i_pkg = 1:numel (pkg_path) ## Remove all paths that are (sub-)folders of a package folder.