[dummypython] Fix up progress reporting

- It's annoying to have 100% progress reported (from the processing
  of list items) and then have another 3 seconds delay.

Unrelated to the issue-at-hand, but spotted in testing.
This commit is contained in:
Adriaan de Groot 2020-03-24 15:23:40 +01:00
parent 1d30c99d89
commit 71b55995ee

View File

@ -102,7 +102,7 @@ def run():
status = _("Dummy python step {}").format(str(c) + ":" + repr(k))
libcalamares.utils.debug(_("Dummy python step {}").format(str(k)))
sleep(1)
libcalamares.job.setprogress(c * 1.0 / len(configlist))
libcalamares.job.setprogress(c * 1.0 / (len(configlist)+1))
c += 1
sleep(3)