Skip to content

Commit

Permalink
PackageCallbacks: fixed progress reporting
Browse files Browse the repository at this point in the history
(progress overflow was caused by missing stage count)

- 3.1.113
  • Loading branch information
lslezak committed Dec 1, 2014
1 parent a58e99c commit a19e76e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions library/packages/src/modules/PackageCallbacks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2777,8 +2777,8 @@ def ProcessStart(task, stages, help)
opened = true
end

# set 100% as max value
Progress.New(task, "", 100, stages, [], help)
# set 100% + number of stages as the max value
Progress.New(task, "", 100 + stages.size, stages, [], help)
Progress.Title(task)
@last_stage = 0
end
Expand Down
7 changes: 7 additions & 0 deletions package/yast2.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Dec 1 12:23:34 UTC 2014 - lslezak@suse.cz

- PackageCallbacks: fixed progress reporting (progress overflow was
caused by missing stage count)
- 3.1.113

-------------------------------------------------------------------
Wed Nov 26 09:49:19 UTC 2014 - jreidinger@suse.com

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


Name: yast2
Version: 3.1.112
Version: 3.1.113
Release: 0
URL: https://github.com/yast/yast-yast2

Expand Down

0 comments on commit a19e76e

Please sign in to comment.