mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
Fix S3 path caching double-prefix
Original PR: #621 Fixes: #619 I've added unit-test to Martyn's PR. Without this fix, if `prefix` is set on S3 publish endpoint, aptly would incorrectly build path cache and re-upload every object on publish.
This commit is contained in:
+1
-1
@@ -267,7 +267,7 @@ func (storage *PublishedStorage) LinkFromPool(publishedDirectory, baseName strin
|
||||
poolPath := filepath.Join(storage.prefix, relPath)
|
||||
|
||||
if storage.pathCache == nil {
|
||||
paths, md5s, err := storage.internalFilelist(storage.prefix, true)
|
||||
paths, md5s, err := storage.internalFilelist("", true)
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "error caching paths under prefix")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user