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:
Andrey Smirnov
2017-04-26 23:37:31 +03:00
parent 2308632683
commit 186bb2dff0
14 changed files with 24 additions and 16 deletions

View File

@@ -144,7 +144,7 @@ func (s *PublishedStorageSuite) TestRenameFile(c *C) {
func (s *PublishedStorageSuite) TestLinkFromPool(c *C) {
root := c.MkDir()
pool := files.NewPackagePool(root)
pool := files.NewPackagePool(root, false)
cs := files.NewMockChecksumStorage()
tmpFile1 := filepath.Join(c.MkDir(), "mars-invaders_1.03.deb")