Skip to content

Commit

Permalink
makes rubocop and travis happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Gilson Souza committed Apr 19, 2018
1 parent a635295 commit c8534a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package/yast2-packager.changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-------------------------------------------------------------------
Fri Apr 13 08:26:41 UTC 2018 - gsouza@suse.com
Fri Apr 19 08:26:41 UTC 2018 - gsouza@suse.com

- Added warning to inform the user that changes in a repository
managed by a service will be lost in the next refresh of the
Expand Down
4 changes: 2 additions & 2 deletions src/lib/packager/clients/repositories.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2082,8 +2082,8 @@ def plugin_service_check(service_alias, msg)
# @param [Hash] sourceState the current state of the repository or service
def warn_service_repository(source_state)
msg = _("Repository '%{name}' is managed by service '%{service}'.\n"\
"Your manual changes might be reset by the next service refresh!") % {name: source_state["name"],
service: source_state["service"]}
"Your manual changes might be reset by the next service refresh!") %
{ name: source_state["name"], service: source_state["service"] }
if source_state["service"] != "" && !@services_repos.include?(source_state["SrcId"])
Popup.Warning(msg)
@services_repos.push(source_state["SrcId"])
Expand Down

0 comments on commit c8534a4

Please sign in to comment.