[bug-notifications] [pkgutil 0003683]: Add a pkgadd/pkgrm debug option

Mantis Bug Tracker noreply at opencsw.org
Thu May 28 15:26:09 CEST 2009


The following issue has been RESOLVED. 
====================================================================== 
http://www.opencsw.org/mantis/view.php?id=3683 
====================================================================== 
Reported By:                yann
Assigned To:                bonivart
====================================================================== 
Project:                    pkgutil
Issue ID:                   3683
Category:                   regular use
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     resolved
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-05-22 23:07 CEST
Last Modified:              2009-05-28 15:26 CEST
====================================================================== 
Summary:                    Add a pkgadd/pkgrm debug option
Description: 

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.



====================================================================== 

---------------------------------------------------------------------- 
 (0006175) bonivart (manager) - 2009-05-23 00:37
 http://www.opencsw.org/mantis/view.php?id=3683#c6175 
---------------------------------------------------------------------- 
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 (reporter) - 2009-05-23 14:25
 http://www.opencsw.org/mantis/view.php?id=3683#c6186 
---------------------------------------------------------------------- 
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 (manager) - 2009-05-25 10:07
 http://www.opencsw.org/mantis/view.php?id=3683#c6189 
---------------------------------------------------------------------- 
You're absolutely right. 

---------------------------------------------------------------------- 
 (0006190) bonivart (manager) - 2009-05-25 16:22
 http://www.opencsw.org/mantis/view.php?id=3683#c6190 
---------------------------------------------------------------------- 
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 (manager) - 2009-05-25 18:30
 http://www.opencsw.org/mantis/view.php?id=3683#c6192 
---------------------------------------------------------------------- 
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 (manager) - 2009-05-28 15:26
 http://www.opencsw.org/mantis/view.php?id=3683#c6217 
---------------------------------------------------------------------- 
Will be in 1.6. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
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       
======================================================================




More information about the bug-notifications mailing list