[packages] Tidy up configuration
- fix the schema so the schema is valid json-schema - the schema doesn't actually validate the *operations* yet - sort the named backends (needs a double-check that the list covers all the ones we currently support) SEE #1441
This commit is contained in:
parent
08aa362c5c
commit
8aa8ac2d26
@ -1,16 +1,18 @@
|
||||
---
|
||||
#
|
||||
# Which package manager to use, options are:
|
||||
# - packagekit - PackageKit CLI tool
|
||||
# - zypp - Zypp RPM frontend
|
||||
# - yum - Yum RPM frontend
|
||||
# - dnf - DNF, the new RPM frontend
|
||||
# - urpmi - Mandriva package manager
|
||||
# - apk - Alpine Linux package manager
|
||||
# - apt - APT frontend for DEB and RPM
|
||||
# - dnf - DNF, the new RPM frontend
|
||||
# - entropy - Sabayon package manager
|
||||
# - packagekit - PackageKit CLI tool
|
||||
# - pacman - Pacman
|
||||
# - portage - Gentoo package manager
|
||||
# - entropy - Sabayon package manager
|
||||
# - apk = Alpine Linux package manager
|
||||
# - urpmi - Mandriva package manager
|
||||
# - yum - Yum RPM frontend
|
||||
# - zypp - Zypp RPM frontend
|
||||
#
|
||||
# Not actually a package manager, but suitable for testing:
|
||||
# - dummy - Dummy manager, only logs
|
||||
#
|
||||
backend: dummy
|
||||
|
@ -4,30 +4,26 @@ $id: https://calamares.io/schemas/packages
|
||||
additionalProperties: false
|
||||
type: object
|
||||
properties:
|
||||
"backend": { type: string, required: true, enum: [packagekit, zypp, yum, dnf, urpmi, apt, pacman, portage, entropy] }
|
||||
"update_db": { type: boolean, default: true }
|
||||
"operations":
|
||||
type: seq
|
||||
sequence:
|
||||
- type: map
|
||||
mapping:
|
||||
"install":
|
||||
type: seq
|
||||
sequence:
|
||||
- { type: text }
|
||||
"remove":
|
||||
type: seq
|
||||
sequence:
|
||||
- { type: text }
|
||||
"localInstall":
|
||||
type: seq
|
||||
sequence:
|
||||
- { type: text }
|
||||
"try_install":
|
||||
type: seq
|
||||
sequence:
|
||||
- { type: text }
|
||||
"try_remove":
|
||||
type: seq
|
||||
sequence:
|
||||
- { type: text }
|
||||
backend:
|
||||
type: string
|
||||
enum:
|
||||
- apk
|
||||
- apt
|
||||
- dnf
|
||||
- entropy
|
||||
- packagekit
|
||||
- pacman
|
||||
- portage
|
||||
- urpmi
|
||||
- yum
|
||||
- zypp
|
||||
- dummy
|
||||
|
||||
update_db: { type: boolean, default: true }
|
||||
update_system: { type: boolean, default: false }
|
||||
skip_if_no_internet: { type: boolean, default: false }
|
||||
|
||||
operations:
|
||||
type: array
|
||||
|
||||
required: [ backend ]
|
||||
|
Loading…
Reference in New Issue
Block a user