pmbootstrap/pmb/helpers
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 Bump copyright to 2023 2023-01-22 19:18:06 +01:00
apk.py pmb.helpers.run_core: move flat_cmd here 2023-07-21 08:54:04 +02:00
aportupgrade.py pmb.helpers.aportupgrade: Remove unused return values (MR 2258) 2024-02-16 10:04:25 +01:00
args.py pmb.helpers.args: Skip some initialisation code when running checksum (MR 2228) 2024-01-19 00:00:49 +00:00
cli.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
devices.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
exceptions.py pmb.helpers.exceptions: Add BuildFailedError (MR 2288) 2024-04-10 20:49:07 +00:00
file.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
frontend.py pmbootstrap status: rework (MR 2294) 2024-04-16 18:54:35 +00:00
git.py pmbootstrap status: rework (MR 2294) 2024-04-16 18:54:35 +00:00
http.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
lint.py lint: drop call to pmb.build.init 2023-06-15 08:30:54 +02:00
logging.py logging: reset style at the end of log line (MR 2272) 2024-03-17 16:24:30 +00:00
mount.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
other.py init: ask whether to install systemd (MR 2273) 2024-03-12 23:53:42 +00:00
package.py pmb.helpers.pmaports.get: deal with operators 2023-11-29 22:31:11 +01:00
pkgrel_bump.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
pmaports.py pkg resolver: don't guess if pmaport was found 2023-12-03 20:11:25 +01:00
repo.py chroot: /mnt/pmbootstrap-* -> /mnt/pmbootstrap/* 2023-08-14 09:52:17 +02:00
repo_bootstrap.py require_bootstrap: ensure apkindex exists (MR 2287) 2024-04-03 19:08:48 +00:00
repo_missing.py pmb.helpers.repo_missing: Replace osk-sdl with unl0kr in example (MR 2289) 2024-04-04 10:59:58 +02:00
run.py pmb.helpers.run: Add some type hints (MR 2262) 2024-03-10 16:18:27 +00:00
run_core.py Fix preserving proxy variables (MR 2237) 2024-01-25 20:12:53 +00:00
status.py pmbootstrap status: rework (MR 2294) 2024-04-16 18:54:35 +00:00
ui.py init: ask whether to install systemd (MR 2273) 2024-03-12 23:53:42 +00:00