From 5d1ba5a738386e45645ac8ba794e38f68a8dee42 Mon Sep 17 00:00:00 2001 From: Brian Goff Date: Mon, 9 Dec 2024 12:26:06 -0800 Subject: [PATCH] Optimize custom repo pulls This removes some extra copy operations required to use repo keys and configs. Signed-off-by: Brian Goff --- helpers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helpers.go b/helpers.go index 12f9fe11b..791c9bd40 100644 --- a/helpers.go +++ b/helpers.go @@ -507,7 +507,7 @@ func repoConfigAsMount(config PackageRepositoryConfig, platformCfg *RepoPlatform for name, repoConfig := range config.Config { // each of these sources represent a repo config file - repoConfigSt, err := repoConfig.AsState(name, sOpt, append(opts, ProgressGroup("Importing repo config: "+name))...) + repoConfigSt, err := repoConfig.AsMount(name, sOpt, append(opts, ProgressGroup("Importing repo config: "+name))...) if err != nil { return nil, err } @@ -544,7 +544,7 @@ func GetRepoKeys(configs []PackageRepositoryConfig, cfg *RepoPlatformConfig, sOp names := []string{} for _, config := range configs { for name, repoKey := range config.Keys { - gpgKey, err := repoKey.AsState(name, sOpt, append(opts, ProgressGroup("Fetching repo key: "+name))...) + gpgKey, err := repoKey.AsMount(name, sOpt, append(opts, ProgressGroup("Fetching repo key: "+name))...) if err != nil { return nil, nil, err }