changeset 28278:3cffb5c059b4 stable

pkg.m: Perform tilde expansion on 'local_list' argument (bug #58332). * pkg.m: Call tilde_expand() on 'local_list' argument.
author Philip Nienhuis <prnienhuis@users.sf.net>
date Thu, 07 May 2020 23:13:55 +0200
parents efa916abcbdd
children 50ced8ab6387
files scripts/pkg/pkg.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/pkg/pkg.m	Fri May 08 20:14:31 2020 +0200
+++ b/scripts/pkg/pkg.m	Thu May 07 23:13:55 2020 +0200
@@ -566,7 +566,7 @@
       elseif (isempty (files) && nargout)
         local_packages = local_list;
       elseif (numel (files) == 1 && ! nargout && ischar (files{1}))
-        local_list = files{1};
+        local_list = tilde_expand (files{1});
         if (! exist (local_list, "file"))
           try
             ## Force file to be created