Mantis - pkg_get
Viewing Issue Advanced Details
4154 regular use feature N/A 2010-01-14 01:08 2010-03-12 15:58
skayser  
bonivart  
normal  
closed  
fixed  
none    
none  
0004154: RFE: Display the full target path when using --extract
When using --extract, could pkgutil display the full target path instead of just /var/opt/csw/pkgutil/packages? I use the --extract feature quite often and the full path would make it easier to simply copy and paste.

Example invocation:

# pkgutil -Nd --extract postfix
Parsing catalog, may take a while...
Package list: CSWpostfix-2.4.6,REV=2008.05.28
Total size: 9.4 MB
Fetching CSWpostfix-2.4.6,REV=2008.05.28 (1/1)...
Extracting CSWpostfix-2.4.6,REV=2008.05.28 (/var/opt/csw/pkgutil/packages)...
#
# pkgutil -v
1.9.1
Issue History
2010-01-14 01:08 skayser New Issue
2010-01-20 10:37 bonivart Note Added: 0007301
2010-01-20 10:38 bonivart Status new => assigned
2010-01-20 10:38 bonivart Assigned To => bonivart
2010-01-20 11:45 skayser Note Added: 0007303
2010-02-23 16:00 bonivart Note Added: 0007504
2010-02-23 16:00 bonivart Status assigned => resolved
2010-02-23 16:00 bonivart Resolution open => fixed
2010-03-12 15:58 bonivart Note Added: 0007624
2010-03-12 15:58 bonivart Status resolved => closed

Notes
(0007301)
bonivart   
2010-01-20 10:37   
So you want something like this:

Extracting /var/opt/csw/pkgutil/packages/CSWpostfix-2.4.6,REV=2008.05.28...
(0007303)
skayser   
2010-01-20 11:45   
Howdy Peter. What I would love to see is:

Extracting CSWpostfix-2.4.6,REV=2008.05.28 to /var/opt/csw/pkgutil/packages/CSWpostfix

This way one could copy and paste the package root right away for further inspection (because that's what I usually do upon extracting, no sense in extracting alone).

Further to this: do you think it is feasible/sensible to extract packages to a version specific directory? This could facilitate working with multiple package revisions in parallel (e.g. one from current and one from testing).

Extracting CSWpostfix-2.4.6,REV=2008.05.28 to /var/opt/csw/pkgutil/packages/CSWpostfix-2.4.6,REV=2008.05.28
(0007504)
bonivart   
2010-02-23 16:00   
You got "Extracting CSWpostfix-2.4.6,REV=2008.05.28 to /var/opt/csw/pkgutil/packages/CSWpostfix ..." in r198.

To name them with version is a little unnatural since the package itself contains the dir name it will create during pkgtrans. It has to be done afterwards (as far as I know).
(0007624)
bonivart   
2010-03-12 15:58   
Implemented in 1.10.