mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-04 05:10:40 +00:00
Add flag to disable/enable support for legacy pool paths
Legacy pool paths are enabled by default, but for new aptly installations (when aptly config is first generated), it would be disabled explicitly.
This commit is contained in:
@@ -30,7 +30,7 @@ var (
|
||||
)
|
||||
|
||||
// NewPackagePool creates new instance of PackagePool which specified root
|
||||
func NewPackagePool(root string) *PackagePool {
|
||||
func NewPackagePool(root string, supportLegacyPaths bool) *PackagePool {
|
||||
rootPath := filepath.Join(root, "pool")
|
||||
rootPath, err := filepath.Abs(rootPath)
|
||||
if err != nil {
|
||||
@@ -39,7 +39,7 @@ func NewPackagePool(root string) *PackagePool {
|
||||
|
||||
return &PackagePool{
|
||||
rootPath: rootPath,
|
||||
supportLegacyPaths: true,
|
||||
supportLegacyPaths: supportLegacyPaths,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user