On Thu, Jun 23, 2016 at 06:44:19AM +0200, Patrik Lundin wrote:
> On Wed, Jun 22, 2016 at 02:19:26PM +0200, Marc Espie wrote:
> > On Tue, Jun 21, 2016 at 10:43:07PM +0200, Patrik Lundin wrote:
> > > The reason for doing this is that it is much faster than just blindly
> > > trying to install a package, and does not hammer mirrors needlessly.
> > > 
> > > Are there any plans to teach pkg_info -e about "%"? Is it even possible?
> > 
> > Okay, just committed the exit code fix.
> > 
> > pkg_info -Iq inst:python%3.5
> > will perform just as you would expect.
> 
> Awesome :).
> 
> I will play around with this and see what I can come up with, thanks!

Actually, I think there's something deeply wrong with this process.
This is not Unix.

The philosophy has always been: you want something, you try to do it.
You do not check whether it's already there, and then do it if it's
not.  So the bigger problem is that there's no quick mode for pkg_add
that checks very quickly on the installed system, stops if it's already
there, and otherwise goes installing.

Right now, you're doing the same check twice, which is not so cool.

So I'll see if I can speed up pkg_add  at some point for the cases things
are already there.

Reply via email to