[yast-commit] [yast/yast-yast2] 138706: Use `getent` to load the services database
Branch: refs/heads/fix/loading_services_database Home: https://github.com/yast/yast-yast2 Commit: 1387064c32c1743b7678edbbc360edf37028b6d4 https://github.com/yast/yast-yast2/commit/1387064c32c1743b7678edbbc360edf370... Author: David Díaz González <dgonzalez@suse.de> 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: ----------- 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: ce809394424516618f43924df63bf02e506db2cb https://github.com/yast/yast-yast2/commit/ce809394424516618f43924df63bf02e50... Author: David Díaz González <dgonzalez@suse.de> 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. Commit: 799bf1b4a042728a8618b9a473bdfdf10f64a924 https://github.com/yast/yast-yast2/commit/799bf1b4a042728a8618b9a473bdfdf10f... Author: David Díaz González <dgonzalez@suse.de> 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: ----------- Use a Struct to make easier dealing with services Commit: 46bc7d658ae13e271444763a482849953f65f318 https://github.com/yast/yast-yast2/commit/46bc7d658ae13e271444763a482849953f... Author: David Díaz González <dgonzalez@suse.de> 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: ----------- Fix documentation and copyright headers Commit: 4742939f8462e35d79b4f9b64c11331ee6739413 https://github.com/yast/yast-yast2/commit/4742939f8462e35d79b4f9b64c11331ee6... Author: David Díaz González <dgonzalez@suse.de> 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: ----------- Get ride of Builtins Compare: https://github.com/yast/yast-yast2/compare/fef782c28c60...4742939f8462
participants (1)
-
David Díaz