]> git.ipfire.org Git - ipfire-2.x.git/commit - langs/nl/cgi-bin/nl.pl
pakfire: Refactor dblist seperating UI and logic
authorRobin Roevens <robin.roevens@disroot.org>
Thu, 28 Jul 2022 11:21:27 +0000 (13:21 +0200)
committerPeter Müller <peter.mueller@ipfire.org>
Thu, 28 Jul 2022 13:44:29 +0000 (13:44 +0000)
commit0bd5b131956c2ceddf6954cf9bddb5321f58fb07
treee7d96a6ccb2b843ef8f58d7480df410d4649d54d
parentf201005f460cec3cde06623556bd067d820071c5
pakfire: Refactor dblist seperating UI and logic

- Removed UI code from dblist function and refactor it making it return
  a hash representing the pak db for easier handling of this data.
- Moved core update check in dblist to new seperate dbcoreinfo function
  making it return a hash with current and possibly available core
  version info.
- Update existing calls to dblist
- Bring UI parts previously in dblist to pakfire program itself,
  pakfire.cgi and index.cgi with a few small enhancements:
  - Translations for 'Core-Update', 'Release', 'Update' and 'Version'
  - Add currently installed version numbers to installed paks list in
    pakfire.cgi
  - Add 'Installed: yes/no' to pakfire list output so people not using
    colors have this information too. (Partly fixes Bug #12868)
  - Add update available details to pakfire list output if package has
    updates available.

Signed-off-by: Robin Roevens <robin.roevens@disroot.org>
html/cgi-bin/index.cgi
html/cgi-bin/pakfire.cgi
langs/de/cgi-bin/de.pl
langs/en/cgi-bin/en.pl
langs/fr/cgi-bin/fr.pl
langs/nl/cgi-bin/nl.pl
src/pakfire/lib/functions.pl
src/pakfire/pakfire