Open Burgos opened 6 years ago
Turns out this doesn't work good with purging the cache's pool. I'll investigate if it can be improved.
What about symlinks?
Turns out this doesn't work good with purging the cache's pool. I'll investigate if it can be improved.
Yes, I was bitten by this one yesterday. In my case, it was if the target file is read only, freight
will fall back to cp
(with this PR). This means the link count isn't increased, on which the logic in apt_clean()
relies, causing it to remove the DEB in the cache pool. apt-cache
would find the package since the Packages
was correct, but apt-get
would fail to install it. Because errors from ln
were redirected to /dev/null
, it was rather tricky to figure out.
What about symlinks?
That doesn't update the link count, which breaks apt_clean()
On filesystems where hardlinking is not supported, freight-cache will failback to copy to add packages into the pool, which will support serving repositories from these filesystems (such as cloud storage mounted with fuse).