Mantis - pkg_get
Viewing Issue Advanced Details
4530 other minor always 2010-08-26 13:07 2010-09-06 17:43
skayser  
bonivart  
normal  
closed  
fixed  
none    
none  
0004530: RFE: Point out package download location when downloading
When downloading a package (-d) there's no indication to the user where the package might have ended up at.

root @ ray42 ~# pkgutil -Nd -T sparc:5.10 nagios_plugins
Package list:
        CSWnagiosp-1.4.13,REV=2009.04.26
Total size: 1.6 MB
=> Fetching CSWnagiosp-1.4.13,REV=2009.04.26 (1/1) ...
root @ ray42 ~#

Compare this with the --stream download option where there's an indication to the user where he can find the generated stream.

Transforming CSWsasl ...
Transforming CSWoldaprt ...
Transforming CSWlibpq ...
Transforming CSWnagiosp ...
Transforming packages into stream (/var/opt/csw/pkgutil/packages/nagios_plugins.sparc.5.10.pkg) ...

Would be helpful to output the download directory on normal downloads also. Maybe add an extra line with the download directory?

root @ ray42 ~# pkgutil -Nd -T sparc:5.10 nagios_plugins
Package list:
        CSWnagiosp-1.4.13,REV=2009.04.26
Total size: 1.6 MB
=> Downloading packages to /var/opt/csw/pkgutil/packages
=> Fetching CSWnagiosp-1.4.13,REV=2009.04.26 (1/1) ...
root @ ray42 ~# pkgutil -v
2.1
Issue History
2010-08-26 13:07 skayser New Issue
2010-08-26 20:10 bonivart Status new => assigned
2010-08-26 20:10 bonivart Assigned To => bonivart
2010-08-27 09:48 bonivart Note Added: 0008218
2010-09-01 12:49 skayser Note Added: 0008235
2010-09-06 17:43 bonivart Note Added: 0008273
2010-09-06 17:43 bonivart Status assigned => closed
2010-09-06 17:43 bonivart Resolution open => fixed

Notes
(0008218)
bonivart   
2010-08-27 09:48   
Funny that you mention this because Dago made a request some time ago so it's already checked in. :-) He wanted every downloaded file to be shown with complete path so he could cut'n'paste. Download the pkgutil file from svn if you want to try it.

root@sol10[trunk]# pkgutil -Nd memconf
Package list:
        CSWmemconf-2.16,REV=2010.08.09
Total size: 69.2 KB
=> Fetching CSWmemconf-2.16,REV=2010.08.09 (1/1) ...

Packages downloaded to:
/var/opt/csw/pkgutil/packages/memconf-2.16,REV=2010.08.09-SunOS5.9-all-CSW.pkg.gz (OK)
root@sol10[trunk]#
(0008235)
skayser   
2010-09-01 12:49   
I just gave it a try. The full paths are very helpful for copy&pasting (which I just used right afterwards). OTOH they tend to be 80+ chars in width, lead to line wraps in 80-column terminals and with a dozen or so of downloaded packages this looks quite messy.
(0008273)
bonivart   
2010-09-06 17:43   
As agreed on IRC (Dago, Sebastian and me) I have implemented Sebastians suggestion:

# pkgutil -Nd memconf
Package list:
        CSWmemconf-2.16,REV=2010.08.09
Total size: 69.2 KB
A local copy of CSWmemconf-2.16,REV=2010.08.09 exists and is of matching size.

Packages downloaded to /var/opt/csw/pkgutil/packages:
memconf-2.16,REV=2010.08.09-SunOS5.9-all-CSW.pkg.gz (OK)

Checked in as r291.