Skip to content

Commit

Permalink
Merge pull request #490 from yast/SLE-15-GA-bsc-1123091
Browse files Browse the repository at this point in the history
Sle 15 ga bsc 1123091
  • Loading branch information
schubi2 committed Jan 30, 2019
2 parents f42f626 + e853981 commit 70b232a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 17 deletions.
6 changes: 6 additions & 0 deletions package/autoyast2.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Jan 30 15:14:25 CET 2019 - schubi@suse.de

- Fixed conflicting items in rule dialogs (bsc1123091).
- 4.0.67

-------------------------------------------------------------------
Tue Nov 13 11:53:55 CET 2018 - schubi@suse.de

Expand Down
2 changes: 1 addition & 1 deletion package/autoyast2.spec
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
%endif

Name: autoyast2
Version: 4.0.66
Version: 4.0.67
Release: 0

BuildRoot: %{_tmppath}/%{name}-%{version}-build
Expand Down
24 changes: 8 additions & 16 deletions src/modules/AutoInstallRules.rb
Original file line number Diff line number Diff line change
Expand Up @@ -680,11 +680,7 @@ def Read
element_nr = Ops.add(element_nr, 1)
if Builtins.contains(@tomerge, file)
Builtins.foreach(Ops.get_list(rule, ["dialog", "conflicts"], [])) do |c|
Ops.set(
conflictsCounter,
c,
Ops.add(Ops.get(conflictsCounter, c, 0), 1)
)
conflictsCounter[c] = 0
end
end
end
Expand Down Expand Up @@ -733,18 +729,14 @@ def Read
)
)
UI.ChangeWidget(Id(:back), :Enabled, false) if dialogIndex == 0
Builtins.foreach(conflictsCounter) do |c, n|
UI.ChangeWidget(
Id(c),
:Enabled,
Ops.greater_than(n, 0) ? false : true
)
UI.ChangeWidget(
Id(c),
:Value,
Ops.greater_than(n, 0) ? false : true
)

# If there are conflicting items set them all to enabled/not_selected
# in order to let the user decide at first.
conflictsCounter.each do |c, n|
UI.ChangeWidget(Id(c), :Enabled, true)
UI.ChangeWidget(Id(c), :Value, false)
end

while true
ret = nil
if timeout == 0
Expand Down

0 comments on commit 70b232a

Please sign in to comment.