File use_fast_append_instead_of_slow_add.diff of Package yast2-scanner

--- src/modules/Scanner.rb.orig	2013-11-04 16:47:09.000000000 +0100
+++ src/modules/Scanner.rb	2014-05-15 16:41:06.034437352 +0200
@@ -1794,20 +1794,14 @@ module Yast
           end
           # Take the filter_string into account:
           if "" == filter_string
-            model_items = Builtins.add(
-              model_items,
-              Item(Id(database_index), model_string)
-            )
+            model_items << Item(Id(database_index), model_string)
           else
             # test whether the model_string matches to the filter_string:
             if Builtins.regexpmatch(
                 Builtins.tolower(model_string),
                 Builtins.tolower(filter_string)
               )
-              model_items = Builtins.add(
-                model_items,
-                Item(Id(database_index), model_string)
-              )
+              model_items << Item(Id(database_index), model_string)
             end
           end
         end
openSUSE Build Service is sponsored by