changeset 7192:10b8361ff085

[project @ 2007-11-26 21:44:54 by dbateman]
author dbateman
date Mon, 26 Nov 2007 21:44:54 +0000
parents b48a21816f2e
children cbdee3da62bd
files scripts/ChangeLog scripts/pkg/pkg.m
diffstat 2 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Mon Nov 26 21:24:33 2007 +0000
+++ b/scripts/ChangeLog	Mon Nov 26 21:44:54 2007 +0000
@@ -1,5 +1,8 @@
 2007-11-26  David Bateman  <dbateman@free.fr>
 
+	* pkg/pkg.m (pkg:install): When loading the installed packages
+	index into installed_pkgs_lst and not descriptions..
+
 	* plot/quiver3.m, plot/surfnorm.m, plot/__quiver__.m: New functions.
 	* plot/Makefile.in (SOURCES): Add them to the sources.
 	* plot/quiver.m: Modify to use __quiver__.m.
--- a/scripts/pkg/pkg.m	Mon Nov 26 21:24:33 2007 +0000
+++ b/scripts/pkg/pkg.m	Mon Nov 26 21:44:54 2007 +0000
@@ -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,