Add support for custom package pool locations

Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com>
This commit is contained in:
Ryan Gonzalez authored and André Roth committed 2024-06-17 11:51:18 +02:00
1 parent 91574b53d9
commit 8e37813129
7 files changed
+29 -4

No files matched your search

+6 -1
View File
@@ -361,7 +361,12 @@ func (context *AptlyContext) PackagePool() aptly.PackagePool {
defer context.Unlock()
if context.packagePool == nil {
context.packagePool = files.NewPackagePool(context.config().RootDir, !context.config().SkipLegacyPool)
poolRoot := context.config().PackagePoolStorage.Path
if poolRoot == "" {
poolRoot = filepath.Join(context.config().RootDir, "pool")
}
context.packagePool = files.NewPackagePool(poolRoot, !context.config().SkipLegacyPool)
}
return context.packagePool