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:
Andrey Smirnov
2017-08-16 23:57:41 +03:00
parent 35e2253944
commit 790d85881b
3 changed files with 17 additions and 1 deletions
+1
View File
@@ -28,3 +28,4 @@ List of contributors, in chronological order:
* Charles Hsu (https://github.com/charz)
* Clemens Rabe (https://github.com/seeraven)
* TJ Merritt (https://github.com/tjmerritt)
* Matt Martyn (https://github.com/MMartyn)