mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-10-18 10:37:09 +00:00
Fix S3 published storage to use new PackagePool interface
Change PackagePool to return Seeker interface from Open call.
This commit is contained in:
1 parent
7bad358408
commit
f4ff8d957f
4 files changed
+71
-32
No files matched your search
@@ -240,7 +240,7 @@ func (pool *PackagePool) Import(srcPath, basename string, checksums *utils.Check
|
||||
}
|
||||
|
||||
// Open returns io.ReadCloser to access the file
|
||||
func (pool *PackagePool) Open(path string) (io.ReadCloser, error) {
|
||||
func (pool *PackagePool) Open(path string) (aptly.ReadSeekerCloser, error) {
|
||||
return os.Open(filepath.Join(pool.rootPath, path))
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user