Mantis - pkg_get
Viewing Issue Advanced Details
3683 regular use feature always 2009-05-22 23:07 2009-05-29 18:40
yann  
bonivart  
normal  
closed  
fixed  
none    
none  
0003683: Add a pkgadd/pkgrm debug option

pkgutil already has a debug option, but it is only used to debug pkgutil itself.
It would be useful to add a pkgadd debug option which would add the -v option in pkgadd/pkgrm calls.

It would help to debug user problem with postinstall/preremove/... code without having to tell me to manually download/uncompress/pkgadd the package.


Issue History
2009-05-22 23:07 yann New Issue
2009-05-23 00:37 bonivart Note Added: 0006175
2009-05-23 00:37 bonivart Status new => assigned
2009-05-23 00:37 bonivart Assigned To => bonivart
2009-05-23 14:25 yann Note Added: 0006186
2009-05-25 10:07 bonivart Note Added: 0006189
2009-05-25 16:22 bonivart Note Added: 0006190
2009-05-25 18:30 bonivart Note Added: 0006192
2009-05-28 15:26 bonivart Note Added: 0006217
2009-05-28 15:26 bonivart Status assigned => resolved
2009-05-28 15:26 bonivart Resolution open => fixed
2009-05-29 18:40 bonivart Note Added: 0006230
2009-05-29 18:40 bonivart Status resolved => closed

Notes
(0006175)
bonivart   
2009-05-23 00:37   
Would it be ok if it was an option in pkgutil.conf? I'm trying to be conservative about the number of command line options.
(0006186)
yann   
2009-05-23 14:25   
You already have the pkgaddopts option in pkgutil.conf, don't you ?

My idea is to just tell a user to do pkgutil --trace --install packagename (for example) when they got a postinstall/preremove/... so then they can very easily send me the debug output.

I would prefer this option to be a command line option because I think it will be easier for the user, but that's your call.
(0006189)
bonivart   
2009-05-25 10:07   
You're absolutely right.
(0006190)
bonivart   
2009-05-25 16:22   
You now have a --trace option that sets -v for pkgadd/pkgrm operations. You can download the updated pkgutil script from:

http://pkgutil.svn.sourceforge.net/viewvc/pkgutil/trunk/pkgutil?revision=46 [^]

Let me know if it's what you want.
(0006192)
bonivart   
2009-05-25 18:30   
There's also packages in testing now:

http://mirror.opencsw.org/testing/pkgutil-1.6b1,REV=2009.05.25-SunOS5.8-i386-CSW.pkg.gz [^]
http://mirror.opencsw.org/testing/pkgutil-1.6b1,REV=2009.05.25-SunOS5.8-sparc-CSW.pkg.gz [^]
(0006217)
bonivart   
2009-05-28 15:26   
Will be in 1.6.
(0006230)
bonivart   
2009-05-29 18:40   
1.6 released.