Mantis - pkg_get
Viewing Issue Advanced Details
3914 regular use feature have not tried 2009-09-23 13:54 2009-10-30 17:44
skayser  
bonivart  
normal  
closed  
fixed  
none    
none  
0003914: Feature request: Select target platform for --download and --transform
The target platform selection via --target is documented to work with the --stream option. Could pkgutil be enhanced so that it also works with --download and --transform.
$ pkgutil -v
1.7
Issue History
2009-09-23 13:54 skayser New Issue
2009-09-23 18:09 bonivart Status new => assigned
2009-09-23 18:09 bonivart Assigned To => bonivart
2009-09-23 18:13 bonivart Note Added: 0006744
2009-10-15 19:21 bonivart Note Added: 0006859
2009-10-16 14:59 bonivart Note Added: 0006865
2009-10-19 20:30 bonivart Note Added: 0006878
2009-10-30 17:44 bonivart Note Added: 0006915
2009-10-30 17:44 bonivart Status assigned => closed
2009-10-30 17:44 bonivart Resolution open => fixed

Notes
(0006744)
bonivart   
2009-09-23 18:13   
To be a more general tool for downloading/inspecting packages?

I guess it wouldn't hurt. I'll add it to my queue. :-)
(0006859)
bonivart   
2009-10-15 19:21   
I haven't forgotten. :-) Just checked in r130 which is a very early version of this. The idea is to move the -T option from the stream option to more generic parts of pkgutil so it can be used with more options, that is all the ones using download which are now also stream and extract.

Expect something more complete tomorrow.

From my Solaris 10 i386:

$ /root/svn/pkgutil/trunk/pkgutil -dN tnef
You're not root and didn't set -W, using current dir.
Fetching new catalog and descriptions (http://ibiblio.org/pub/packages/solaris/opencsw/current/i386/5.10) [^] if available...
...
Parsing catalog, may take a while...
Package list:
        CSWtnef-1.4.6,REV=2009.09.29
Total size: 36.4 KB
Fetching CSWtnef-1.4.6,REV=2009.09.29 (1/1)...
2009-10-15 19:09:45 URL:http://ibiblio.org/pub/packages/solaris/opencsw/current/i386/5.10/tnef-1.4.6,REV=2009.09.29-SunOS5.8-i386-CSW.pkg.gz [^] [37310/37310] -> "/export/home/peter/packages/tnef-1.4.6,REV=2009.09.29-SunOS5.8-i386-CSW.pkg.gz" [1]

Note that it gets the 5.8/i386 package if no target is set. Now I set a target.

-bash-3.00$ /root/svn/pkgutil/trunk/pkgutil -dN -T sparc:5.10 tnef
You're not root and didn't set -W, using current dir.
Fetching new catalog and descriptions (http://ibiblio.org/pub/packages/solaris/opencsw/current/sparc/5.10) [^] if available...
Parsing catalog, may take a while...
Package list:
        CSWtnef-1.4.6,REV=2009.09.29
Total size: 45.7 KB
Fetching CSWtnef-1.4.6,REV=2009.09.29 (1/1)...
2009-10-15 19:10:36 URL:http://ibiblio.org/pub/packages/solaris/opencsw/current/sparc/5.10/tnef-1.4.6,REV=2009.09.29-SunOS5.8-sparc-CSW.pkg.gz [^] [46775/46775] -> "/export/home/peter/packages/tnef-1.4.6,REV=2009.09.29-SunOS5.8-sparc-CSW.pkg.gz" [1]

It now fetched the 5.8/sparc package instead.
(0006865)
bonivart   
2009-10-16 14:59   
r131 should be more complete with cleaned up --stream function. Now you should be able to use target for all download operations:

-d -T sparc:5.8
-d --stream -T sparc:5.8
-d --extract -T sparc:5.8
(0006878)
bonivart   
2009-10-19 20:30   
There's a 1.8 beta 1 with this fix in testing now.
(0006915)
bonivart   
2009-10-30 17:44   
1.8 released to current.