mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-07-16 12:08:04 +00:00
feat(s3): add publishedPrefix to pathCache to avoid reupload of files
This commit is contained in:
committed by
André Roth
parent
f01e4dbe76
commit
0070b4f596
+1
-1
@@ -346,7 +346,7 @@ func (storage *PublishedStorage) LinkFromPool(publishedPrefix, publishedRelPath,
|
|||||||
storage.pathCache = make(map[string]string, len(paths))
|
storage.pathCache = make(map[string]string, len(paths))
|
||||||
|
|
||||||
for i := range paths {
|
for i := range paths {
|
||||||
storage.pathCache[filepath.Join("pool", paths[i])] = md5s[i]
|
storage.pathCache[filepath.Join(publishedPrefix, "pool", paths[i])] = md5s[i]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user