Skip to content

Commit

Permalink
Merge pull request #49 from shundhammer/huha-trans
Browse files Browse the repository at this point in the history
  • Loading branch information
shundhammer committed Feb 17, 2020
2 parents beadd5a + c5ecf86 commit a16cb7d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 15 deletions.
6 changes: 6 additions & 0 deletions package/yast2-apparmor.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Feb 17 16:01:12 UTC 2020 - Stefan Hundhammer <shundhammer@suse.com>

- Fixed user-visible messages (bsc#1084015)
- 4.2.4

-------------------------------------------------------------------
Thu Jan 23 12:41:07 UTC 2020 - Steffen Winterfeldt <snwint@suse.com>

Expand Down
2 changes: 1 addition & 1 deletion package/yast2-apparmor.spec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


Name: yast2-apparmor
Version: 4.2.3
Version: 4.2.4
Release: 0
Summary: YaST2 - Plugins for AppArmor Profile Management
Url: https://github.com/yast/yast-apparmor
Expand Down
21 changes: 7 additions & 14 deletions src/include/apparmor/profile_dialogs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1477,19 +1477,11 @@ def SelectProfileForm(profiles, formhelp, formtitle, iconname)
next
end # TODO ELSE POPUP NO ENTRY SELECTED ERROR
elsif id == :delete
if Popup.YesNoHeadline(
_("Delete profile confirmation"),
Ops.add(
Ops.add(
_("Are you sure you want to delete the profile "),
profilename
),
_(
" ?\nAfter this operation the AppArmor module will reload the profile set."
)
)
)
Builtins.y2milestone(Ops.add("Deleted ", profilename))
# Translators: %1 is the name of the profile.
popup_msg = Builtins.sformat(_("Are you sure you want to delete the profile\n\"%1\"?"), profilename )
popup_msg += "\n" + _("After this operation the AppArmor module will reload the profile set.")
if Popup.YesNoHeadline(_("Delete profile confirmation"), popup_msg)
Builtins.y2milestone("Deleted %1", profilename)
result = SCR.Write(path(".apparmor_profiles.delete"), profilename)
result2 = SCR.Execute(path(".target.bash"), "/sbin/apparmor_parser -r /etc/apparmor.d")
end
Expand All @@ -1498,7 +1490,8 @@ def SelectProfileForm(profiles, formhelp, formtitle, iconname)
end
if id == :abort || id == :cancel
break
# This module break common work-flow that changes are commited at the end, so react same for break and also for next
# This module breaks the common YaST workflow rule that changes are
# commited at the end, so react the same way for back and also for next
elsif id == :back || id == :next
break
else
Expand Down

0 comments on commit a16cb7d

Please sign in to comment.