Consider also category when building up the luet tree

This commit is contained in:
Ettore Di Giacinto 2019-11-03 18:39:15 +01:00
parent a5e125de4b
commit 0307b1faad
No known key found for this signature in database
GPG Key ID: 1ADA699B145A2D1C

View File

@ -30,7 +30,7 @@ func (r *Recipe) Save(path string) error {
if err != nil {
return err
}
dir := filepath.Join(path, p.GetName(), p.GetVersion())
dir := filepath.Join(path, p.GetCategory(), p.GetName(), p.GetVersion())
os.MkdirAll(dir, os.ModePerm)
data, err := p.Yaml()
if err != nil {