WIP: gather more meta for catalogue generation

This commit is contained in:
decentral1se 2021-09-20 16:48:27 +02:00
parent 700f022790
commit 96aa74a977
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 15 additions and 4 deletions

View File

@ -89,10 +89,21 @@ var catalogueGenerateCommand = &cli.Command{
}
catl := make(catalogue.RecipeCatalogue)
for recipeName := range repos {
// TODO: gather more metadata
catl[recipeName] = catalogue.RecipeMeta{
Name: recipeName,
for _, recipeMeta := range repos {
if recipeName != "" && recipeName != recipeMeta.Name {
continue
}
if _, exists := CatalogueSkipList[recipeMeta.Name]; exists {
continue
}
catl[recipeMeta.Name] = catalogue.RecipeMeta{
Name: recipeName,
Repository: recipeMeta.CloneURL,
DefaultBranch: recipeMeta.DefaultBranch,
Description: recipeMeta.Description,
Website: recipeMeta.Website,
Versions: nil, // FIXME: once the new versions work goes down
}
}