Re: [Pkgutil-users] pkgutil package install/available mismatch
Status: Beta
Brought to you by:
bonivart
|
From: Rob R. <rr...@fa...> - 2009-06-08 23:36:09
|
Peter, Thanks for the quick response. I didn't look at the code before I sent my last email so I should of mentioned that I have noncsw set to true in pkgutil.conf so the if statement in "sub compare" uses the full output of `pkginfo` for the array. I discovered this issue while using pkgutil as a package provider for puppet so if I don't call packages as they are exactly named in the repo, the package reference fails and reinstalls the package continuously. Here is an example of another package that doesn't report correctly: system CSWgfile fileutils - GNU file utilities It will be useful if a new option to pkgutil is created to do more exact compares between the repo and whats installed. Again, thanks for the response, please keep up the great work on this project! Rob Ruma Harvard University Faculty of Arts and Sciences (FAS) UNIX IT Systems Peter Bonivart wrote: > On Mon, Jun 8, 2009 at 9:21 PM, Rob Ruma<rr...@fa...> wrote: >> This could be a possible bug. pkgutil doesn't report if a package is >> installed if the name of the CSW package doesn't match what it goes by >> from the repo. > > Since both compare options (c/C) list package names and not catalog > names, that is what you should provide on the command line. Think of > it as piping to grep. > >> [root@sun]# pkgutil -c pkg_update_watch >> package installed catalog > > This would have worked if you had specified pkgupdatewatch. > >> [root@sun]# pkgutil -C pkg_update_watch >> package installed catalog > > Even if this matched it would only have shown something if installed > version didn't match catalog version. > >> [root@sun]# pkgutil -a pkg_update_watch >> pkg_update_watch CSWpkgupdatewatch 1.0,REV=2007.04.10 >> 4.0 KB > > Here it works using catalog name since output contains both package > and catalog names. Again, think of it as a grep. > > Actually, all internal work in pkgutil is done with package names. > When you, for example, use catalog names to install something a lookup > has to be done for every one so you lose a few milliseconds. :-) For > this to work I guess I would have to do lookups here as well. Do you > think that would be better? > > I could try to fix that if you want it. > |