]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commit
pakfire: Refactor status seperating UI and logic
authorRobin Roevens <robin.roevens@disroot.org>
Thu, 28 Jul 2022 11:21:33 +0000 (13:21 +0200)
committerPeter Müller <peter.mueller@ipfire.org>
Thu, 28 Jul 2022 13:44:29 +0000 (13:44 +0000)
commit074b509724e1ffa334db275e594eeaebcca80164
tree9efd01637572ef30cbbf66b5c901abd0a0042104
parent2b921b796dd629a1fdee74cc8fd405e056e2b2a8
pakfire: Refactor status seperating UI and logic

- Removed UI code from status function now returning hash with status
  properties.
- Removed function coreupdate_available as it is now not used anymore
- Added UI code to pakfire status routine
- Added meaningfull exitcode to status:
  - 2: Core update available
  - 3: Pak update available
  - 4: Reboot required
  - Error codes can be added together: 2+3 = 5 means both core update
    and pak update is available

Signed-off-by: Robin Roevens <robin.roevens@disroot.org>
src/pakfire/lib/functions.pl
src/pakfire/pakfire