Skip to content
Snippets Groups Projects
Commit bbed915e authored by dos's avatar dos
Browse files

Merge branch 'dos-main-patch-01697' into 'main'

server_apps: Add new sections ("Media" and "Games")

See merge request !6
parents f1395569 3ba1dd38
Branches
No related tags found
1 merge request!6server_apps: Add new sections ("Media" and "Games")
...@@ -284,9 +284,11 @@ func (s *server) parseAppToml(ctx context.Context, pathInRepo string, obj *objec ...@@ -284,9 +284,11 @@ func (s *server) parseAppToml(ctx context.Context, pathInRepo string, obj *objec
"Badge": true, "Badge": true,
"Apps": true, "Apps": true,
"Music": true, "Music": true,
"Media": true,
"Games": true,
} }
if !sections[data.App.Category] { if !sections[data.App.Category] {
return nil, fmt.Errorf("app category invalid (must be one of 'Badge', 'Apps', 'Music')") return nil, fmt.Errorf("app category invalid (must be one of 'Badge', 'Apps', 'Music', 'Media', 'Games')")
} }
if data.Entry.Class == "" { if data.Entry.Class == "" {
return nil, fmt.Errorf("no entry class") return nil, fmt.Errorf("no entry class")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment