tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: creating unique urls for binary packages



* On 2017-05-18 at 06:24 BST, matthew sporleder wrote:

> A few days ago we ran into a situation where some packages were
> rebuilt but not given new names, causing pkgin and friends to be upset
> about checksums of files not matching pkg_summary because
> cdn.netbsd.org had the packages cached from the previous build.
> 
> There are a few ways to resolve this, but the easiest one is to have
> the client (pkgin) append a unique identifier (like the build date) to
> the package's url:
> bash-2.05.2.13.tgz?BUILD_DATE=2017-01-07_23:23:31_+0000
> 
> when it fetched that package.
> 
> Thoughts?

This seems like a bug in the CDN?  pkgin itself should handle rebuilt
packages ok, as long as you are running a version with this commit:

  https://github.com/NetBSDfr/pkgin/commit/f21d2ec9

Are you not enabling ETags or something?

-- 
Jonathan Perkin  -  Joyent, Inc.  -  www.joyent.com


Home | Main Index | Thread Index | Old Index