Mercurial > hg > octave-lyh
diff scripts/pkg/pkg.m @ 7192:10b8361ff085
[project @ 2007-11-26 21:44:54 by dbateman]
author | dbateman |
---|---|
date | Mon, 26 Nov 2007 21:44:54 +0000 |
parents | 9c73ef1819c7 |
children | a730e47fda4d |
line wrap: on
line diff
--- a/scripts/pkg/pkg.m +++ b/scripts/pkg/pkg.m @@ -757,12 +757,18 @@ endfor ## Add the newly installed packages to the path, so the user - ## can begin usings them. Only load them if they are marked autoload + ## can begin using them. Only load them if they are marked autoload if (length (descriptions) > 0) idx = []; for i = 1:length (descriptions) if (isautoload (descriptions(i))) - idx (end + 1) = i; + nm = descriptions{i}.name; + for j = 1:length (installed_pkgs_lst) + if (strcmp (nm, installed_pkgs_lst{j}.name)) + idx (end + 1) = j; + break; + endif + endfor endif endfor load_packages_and_dependencies (idx, handle_deps, installed_pkgs_lst,