pmbootstrap/pmb/parse
Oliver Smith 0d320d0613
pmbootstrap status: rework (MR 2294)
Reimplement "pmbootstrap status" to be just a simple and useful status
overview. The previous version ran a bunch of checks every time, and
would fail on these even if pmaports was used for normal development:
  * "non-official" branch checked out in pmaports
  * pmaports.git is not clean

The information about aports.git was also considered not so useful upon
revisiting this command, since it is only used for "pmbootstrap
aportgen". Most users don't need this, and if the user runs this
command, it will tell if aports.git is outdated.

All of the above made the previous version unpleasant to use and I
suspect most people stopped using the command after trying it out a few
times and seeing the irrelevant but loud NOK complaints.

New version:

  $ pmbootstrap status
  Channel: edge (pmaports: master_staging_systemd)
  Device:  qemu-amd64 (x86_64, kernel: virt)
  UI:      console
  systemd: no (default for selected UI)

Old version (without --details it only shows NOK checks):

  $ pmbootstrap status --details
  [00:55:20] *** CONFIG ***
  [00:55:20] Device: qemu-amd64 (x86_64, "QEMU amd64")
  [00:55:20] Kernel: virt
  [00:55:20] User Interface: console
  [00:55:20]
  [00:55:20] *** GIT REPOS ***
  [00:55:20] Path: /home/user/.local/var/pmbootstrap/cache_git
  [00:55:20] - aports_upstream (master)
  [00:55:20] - pmaports (master)
  [00:55:20]
  [00:55:20] *** CHECKS ***
  [00:55:20] [OK ] Chroots zapped recently (or non-existing)
  [00:55:20] [OK ] aports_upstream: on official channel branch
  [00:55:20] [OK ] aports_upstream: workdir is clean
  [00:55:20] [OK ] aports_upstream: tracking proper remote branch 'origin/master'
  [00:55:20] [OK ] aports_upstream: up to date with remote branch
  [00:55:20] [OK ] aports_upstream: remote information updated recently (via git fetch/pull)
  [00:55:20] [OK ] pmaports: on official channel branch
  [00:55:20] [OK ] pmaports: workdir is clean
  [00:55:20] [OK ] pmaports: tracking proper remote branch 'origin/master'
  [00:55:20] [OK ] pmaports: up to date with remote branch
  [00:55:20] [OK ] pmaports: remote information updated recently (via git fetch/pull)
  [00:55:20]
  [00:55:20] NOTE: chroot is still active (use 'pmbootstrap shutdown' as necessary)
  [00:55:20] DONE!
2024-04-16 18:54:35 +00:00
..
__init__.py parse/init: allow importing arguments_install and arguments_flasher 2023-11-01 20:40:11 +01:00
_apkbuild.py pmb.parse._apkbuild: Fix subpackages with set arch but no custom function (MR 2267) 2024-02-26 20:55:49 +01:00
apkindex.py pmb.helpers.pmaports.get: deal with operators 2023-11-29 22:31:11 +01:00
arch.py pmb.parse.arch: use qemu for running armhf on aarch64 (MR 2285) 2024-03-30 00:03:56 +00:00
arguments.py pmbootstrap status: rework (MR 2294) 2024-04-16 18:54:35 +00:00
binfmt_info.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
bootimg.py pmb.parse.bootimg: implement detection of QCDT types (MR 2276) 2024-03-17 18:45:51 +00:00
cpuinfo.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
depends.py parse.depends: consider selected providers when resolving providers 2023-11-26 11:01:35 +01:00
deviceinfo.py deviceinfo: make parse_kernel_suffix private 2023-07-21 08:54:10 +02:00
kconfig.py pmb.parse.kconfig: Raise NonBugError on invalid kernel config (MR 2279) 2024-03-27 21:50:28 +01:00
version.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00