Branch: refs/heads/master Home: https://github.com/yast/yast-update Commit: cabd7b0311aab30e58f51bfac4dfd247c9b0ac9a https://github.com/yast/yast-update/commit/cabd7b0311aab30e58f51bfac4dfd247c... Author: David Díaz <1691872+dgdavid@users.noreply.github.com> Date: 2018-09-18 (Tue, 18 Sep 2018) Changed paths: M package/yast2-update.changes M package/yast2-update.spec M src/modules/Update.rb A test/data/etc/leap-15-os-release A test/data/etc/tw-os-release M test/update_test.rb Log Message: ----------- Do not restore old backups when the upgrade fails (#111) * Copy the /etc/os-release file when a backup is created Useful to decide if the available backup should be restored, which will be helpful to avoid having a system with wrong repositories from the previous backed version when the update fails before cleaning up previous backups. Related to bsc#1097297 * Do not restore old backups when the upgrade fails The backup only will be restored when the ID and VERSION_ID matches in both, the current and backed os-release file. * Remove some trailing spaces * Update from code review - Add more logs to ease the debug - Make `rescue` statements more specific, catching only `SystemCallError` exceptions More info: https://blog.appsignal.com/2018/04/10/rescuing-exceptions-in-ruby.html - Use `String#tr` instead `String#gsub` * Update version and changelog **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/ Functionality will be removed from GitHub.com on January 31st, 2019.