pkgsrc-Users archive

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

Re: Can "make package-install" call "pkg_add -u"?



On Sat, Sep 10, 2016 at 11:05:56AM +0200, Benny Siegert wrote:
> I often work in an updated tree without having updated all installed packages. Often, I get this annoying failure mode when running „make package-install“:
> 
> ===> Installing binary package of go-1.7.1
> pkg_add: A different version of go-1.7.1 is already installed: go-1.7
> pkg_add: 1 package addition failed
> *** Error code 1
> 
> Would it be possible to have „make package-install“ just use the -u option to pkg_add? This would do the right thing in this case. The param is harmless if no older version is installed.

That's effectively what make replace did for a long time, until some
people insisted that pkg_tarup must be run again.

Joerg


Home | Main Index | Thread Index | Old Index