Rename profile/icons to profile/binmeta

This commit is contained in:
Daniel
2023-12-19 15:33:45 +01:00
parent a88de1532c
commit 2ae24656fc
23 changed files with 49 additions and 49 deletions

View File

@@ -14,7 +14,7 @@ import (
"github.com/safing/portbase/config"
"github.com/safing/portbase/log"
"github.com/safing/portmaster/profile"
"github.com/safing/portmaster/profile/icons"
"github.com/safing/portmaster/profile/binmeta"
)
// ProfileExport holds an export of a profile.
@@ -415,12 +415,12 @@ func ImportProfile(r *ProfileImportRequest, requiredProfileSource profile.Profil
if err != nil {
return nil, fmt.Errorf("%w: icon data is invalid: %w", ErrImportFailed, err)
}
filename, err := icons.UpdateProfileIcon(du.Data, du.MediaType.Subtype)
filename, err := binmeta.UpdateProfileIcon(du.Data, du.MediaType.Subtype)
if err != nil {
return nil, fmt.Errorf("%w: icon is invalid: %w", ErrImportFailed, err)
}
p.Icons = []icons.Icon{{
Type: icons.IconTypeAPI,
p.Icons = []binmeta.Icon{{
Type: binmeta.IconTypeAPI,
Value: filename,
}}
}