# HG changeset patch # User Markus Mützel # Date 1649776531 -7200 # Node ID 1e7a33a0e58628f5212706eb9d322a56529e5993 # Parent c5284aceb80ba59cae9faeba9974f942cb5881bc# Parent f67d2ce5d6d42d94220d24c95698eef6815ac947 maint: Merge stable to default. diff -r c5284aceb80b -r 1e7a33a0e586 scripts/pkg/pkg.m --- a/scripts/pkg/pkg.m Mon Apr 11 18:42:33 2022 +0200 +++ b/scripts/pkg/pkg.m Tue Apr 12 17:15:31 2022 +0200 @@ -696,6 +696,10 @@ global_packages = standardize_paths (global_packages); endif global_packages = make_rel_paths (global_packages); + global_list_dir = fileparts (global_list); + if (! isempty (global_list_dir) && ! exist (global_list_dir, "dir")) + mkdir (global_list_dir); + endif save (global_list, "global_packages"); if (nargout) local_packages = global_packages; @@ -707,6 +711,10 @@ if (ispc) local_packages = standardize_paths (local_packages); endif + local_list_dir = fileparts (local_list); + if (! isempty (local_list_dir) && ! exist (local_list_dir, "dir")) + mkdir (local_list_dir); + endif save (local_list, "local_packages"); if (! nargout) clear ("local_packages");