Update Swift published storage to work with new package pool

This commit is contained in:
Andrey Smirnov
2017-04-07 00:48:18 +03:00
parent f4ff8d957f
commit 2535367c3c
3 changed files with 38 additions and 20 deletions

View File

@@ -304,6 +304,8 @@ func (storage *PublishedStorage) LinkFromPool(publishedDirectory string, sourceP
err = storage.putFile(relPath, source)
if err == nil {
storage.pathCache[relPath] = sourceMD5
} else {
err = errors.Wrap(err, fmt.Sprintf("error uploading %s to %s: %s", sourcePath, storage, poolPath))
}
return err