Skip to content

[pmb-status 4/4] pmbootstrap status: display and check git repos

Oliver Smith requested to merge pmb-status into master

With the final round of patches, it looks like this:

$ pmbootstrap status
[21:28:26] *** CONFIG ***
[21:28:26] Device: qemu-amd64 (x86_64, "QEMU amd64")
[21:28:26] Kernel: stable
[21:28:26] User Interface: sway
[21:28:26] 
[21:28:26] *** GIT REPOS ***
[21:28:26] Path: /home/user/.local/var/pmbootstrap/cache_git
[21:28:26] - aports_upstream (master)
[21:28:26] - pmaports (master)
[21:28:26] 
[21:28:26] *** CHECKS ***
[21:28:26] [NOK] Chroots not zapped recently
[21:28:26] [NOK] aports_upstream: outdated remote information
[21:28:26] 
[21:28:26] *** CHECKLIST ***
[21:28:26] - Run 'pmbootststrap zap' to delete possibly outdated chroots
[21:28:26] - aports_upstream: update with 'pmbootstrap pull'
[21:28:26] - Run 'pmbootstrap status' to verify that all is resolved

The last "git pull/fetch" of each git repo is measured, and "pmbotstrap status" warns if it was done too long ago. It also checks if an officially supported branch is checked out, or not and does other checks just like in "pmbootstrap pull".

As discussed in postmarketos#11 (closed), the pmdevices.git repository will not be coming. "pmbootstrap pull" and "pmbootstrap status" are still useful though.

Closes: #1829 (closed)

Merge request reports