File use_fast_append_instead_of_slow_add.diff of Package yast2-printer
--- src/modules/Printer.rb.orig 2014-05-09 11:52:53.000000000 +0200
+++ src/modules/Printer.rb 2014-05-15 11:44:45.035771771 +0200
@@ -1560,10 +1560,7 @@ module Yast
driver_string = Ops.add(Ops.add(Ops.add(nickname, " ["), ppd), "]")
# Take the filter_string into account:
if "" == driver_filter_string
- driver_items = Builtins.add(
- driver_items,
- Item(Id(ppds_index), driver_string)
- )
+ driver_items << Item(Id(ppds_index), driver_string)
else
# test whether nickname or deviceID matches to the driver_filter_string.
# Only the special character '+' is also taken into account because
@@ -1581,10 +1578,7 @@ module Yast
)
if Builtins.regexpmatch(unified_nickname, driver_filter_string) ||
Builtins.regexpmatch(unified_deviceID, driver_filter_string)
- driver_items = Builtins.add(
- driver_items,
- Item(Id(ppds_index), driver_string)
- )
+ driver_items << Item(Id(ppds_index), driver_string)
end
end
end