Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
During package donwload setup first add all downloads then handle local
This caused atleast two problems: 1. When the first package was local and its `end` callback was called immediately it updated and printed the MultiProgressBar which though that its finished (because it contained only one finished bar). This lead to an extra new line being printed which broke the output, reported here: #1957 2. The numbering of bars was wrong, most noticeable with bigger transactions with some already downloaded packages. It could look like: ``` Transaction Summary: Installing: 296 packages Total size of inbound packages is 414 MiB. Need to download 412 MiB. After this operation, 1 GiB extra will be used (install 1 GiB, remove 0 B). Is this ok [y/N]: y [1/1] libreoffice-1:24.8.4.2-2.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded ----------------------------------------------------------------------------------------------------------------------------------------- [1/2] libreoffice-base-1:24.8.4.2-2.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded ----------------------------------------------------------------------------------------------------------------------------------------- [1/4] libreoffice-draw-1:24.8.4.2-2.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded ----------------------------------------------------------------------------------------------------------------------------------------- [2/5] libreoffice-emailmerge-1:24.8.4.2-2.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded ----------------------------------------------------------------------------------------------------------------------------------------- [3/6] libreoffice-impress-1:24.8.4.2-2.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded ----------------------------------------------------------------------------------------------------------------------------------------- [4/7] libreoffice-math-1:24.8.4.2-2.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded ----------------------------------------------------------------------------------------------------------------------------------------- [ 5/296] libreoffice-calc-1:24.8.4.2-2.fc41.x86_64 0% [<=> ] | 1.0 B/s | 0.0 B | 97d15h ```
- Loading branch information