Add 'force' to LinkFromPool method: overwrite file even if exists and different content. #90

This commit is contained in:
Andrey Smirnov
2014-08-05 14:43:23 +04:00
parent 625a38c578
commit da6d5b7cf8
6 changed files with 99 additions and 10 deletions
+1 -1
View File
@@ -477,7 +477,7 @@ func (p *Package) LinkFromPool(publishedStorage aptly.PublishedStorage, packageP
relPath := filepath.Join("pool", component, poolDir)
publishedDirectory := filepath.Join(prefix, relPath)
err = publishedStorage.LinkFromPool(publishedDirectory, packagePool, sourcePath, f.Checksums.MD5)
err = publishedStorage.LinkFromPool(publishedDirectory, packagePool, sourcePath, f.Checksums.MD5, false)
if err != nil {
return err
}