Skip to content

Add progress bar when running apk commands

This uses a fifo for capturing the progress from apk commands and displays it in a progress bar on the terminal. This is not meant to be the final state of the change but rather a basis for discussion. I have been touching a few central places and given my limited knowledge of both python and pmbootstrap, I probably did quite a few things wrong.

What works:

  • Progress bar is printed during pmbootstrap install for apk commands run inside the chroot
  • Progress bar is printed during pmbootstrap install for apk commands run on the host

Open questions:

  • What style should we use for the bar? I'm currently printing it in the form |▇▇▇▇----| 50%, scaled to the width of the terminal.
  • Should the change be broken up into separate commits? It's quite a lot of changes but everything also depends on each other in a way.
Edited by Johannes Marbach

Merge request reports