mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-06 05:30:57 +00:00
Implement FileExists in files storage as simple stat to improve performance
This commit is contained in:
+1
-1
@@ -202,7 +202,7 @@ func packageIndexByHash(file *indexFile, ext string, hash string, sum string) er
|
||||
}
|
||||
|
||||
// create symlink
|
||||
err = file.parent.publishedStorage.SymLink(sum, filepath.Join(dst, indexfile))
|
||||
err = file.parent.publishedStorage.SymLink(filepath.Join(dst, sum), filepath.Join(dst, indexfile))
|
||||
if err != nil {
|
||||
return fmt.Errorf("Acquire-By-Hash: error creating symlink %s", filepath.Join(dst, indexfile))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user