diff scripts/pkg/private/rebuild.m @ 14645:e12a0ac530b4

Fix handling of duplicate packages * scripts/pkg/private/installed_packages.m, scripts/pkg/private/rebuild.m: Fix comparison against list of duplicate packages.
author Mike Miller <mtmiller@ieee.org>
date Wed, 16 May 2012 08:12:32 -0400
parents 05b59be209ed
children 5d3a684236b0
line wrap: on
line diff
--- a/scripts/pkg/private/rebuild.m
+++ b/scripts/pkg/private/rebuild.m
@@ -81,11 +81,11 @@
 
     dup = [];
     for i = 1:length (descriptions)
-      if (find (dup, i))
+      if (any (dup == i))
         continue;
       endif
       for j = (i+1):length (descriptions)
-        if (find (dup, j))
+        if (any (dup == j))
           continue;
         endif
         if (strcmp (descriptions{i}.name, descriptions{j}.name))