atoms modules tests fixed
[scilab.git] / scilab / modules / atoms / macros / atoms_internals / atomsRemoveList.sci
index 5c3d20e..02b2b22 100644 (file)
@@ -142,11 +142,10 @@ function remList = atomsRemoveList(packages,section)
         for j=1:size(this_package_versions,"*")
             for k=1:size(sections,"*")
                 if atomsIsInstalled([package_names(i) this_package_versions(j)],sections(k)) ..
-                    & isempty(find(remList(:,3)+" - "+remList(:,4)+" - "+remList(:,5) == package_names(i)+" - "+this_package_versions(j)+" - "+sections(k))) then
+                    & (remList == [] || isempty(find(remList(:,3)+" - "+remList(:,4)+" - "+remList(:,5) == package_names(i)+" - "+this_package_versions(j)+" - "+sections(k)))) then
                     remList = [ remList ; "-" "U" package_names(i) this_package_versions(j) sections(k) ];
                 end
             end
-
         end
     end