Branch: refs/heads/fix/loading_services_database
Home: https://github.com/yast/yast-yast2
Commit: 956f2985c47d6a04db79c6c12c2ece48bbac6b87
https://github.com/yast/yast-yast2/commit/956f2985c47d6a04db79c6c12c2ece48bb...
Author: David Díaz González
Date: 2020-03-04 (Wed, 04 Mar 2020)
Changed paths:
M library/network/test/port_aliases_test.rb
Log Message:
-----------
Add missing unit tests
The PortAliases public API didn't have unit tests yet, which we
considered necessary to make changes in a safety way.
Commit: 15a2e12ba877b60b75e8019b8ba9f283f422b0d0
https://github.com/yast/yast-yast2/commit/15a2e12ba877b60b75e8019b8ba9f283f4...
Author: David Díaz González
Date: 2020-03-04 (Wed, 04 Mar 2020)
Changed paths:
M library/network/src/modules/PortAliases.rb
M library/network/test/port_aliases_test.rb
Log Message:
-----------
Use `getent` to load the services database
The `getent` util will load the database properly, no matter if it is
placed in /etc/services, /usr/etc/services, or even in both.
Commit: 7fe81db177352e65f7de7316c24235ff712305a4
https://github.com/yast/yast-yast2/commit/7fe81db177352e65f7de7316c24235ff71...
Author: David Díaz González
Date: 2020-03-05 (Thu, 05 Mar 2020)
Changed paths:
M library/network/src/modules/PortAliases.rb
M library/network/test/port_aliases_test.rb
Log Message:
-----------
Improve performance reducing the services lines to process
The services database could have almost identical entries for the same
services, but with different protocol. Getting rid of the protocol
allows to identify and discard those not necessary lines, which helps to
improve the performance.
Compare: https://github.com/yast/yast-yast2/compare/956f2985c47d%5E...7fe81db17735