Fix S3 published storage to use new PackagePool interface

Change PackagePool to return Seeker interface from Open call.
This commit is contained in:
Andrey Smirnov
2017-04-06 21:49:35 +03:00
parent 7bad358408
commit f4ff8d957f
4 changed files with 71 additions and 32 deletions
+1 -1
View File
@@ -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))
}