Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 41926

Summary: emerge --pretend --fetchonly output redirection
Product: Gentoo Linux Reporter: Jan Kundrát (RETIRED) <jkt>
Component: Current packagesAssignee: Portage team <dev-portage>
Status: RESOLVED WONTFIX    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jan Kundrát (RETIRED) gentoo-dev 2004-02-17 09:55:36 UTC
well, I have only slow connection at home and want to create a file list of outdated packages, but output of emerge -pf _something_ (--pretend and --fetchonly) cannot be redirected to a file with standard shell method - emerge -fp blabla > ./filelist
I hate copy&paste from xterm, and it is more than annoying to copy & paste output with > 1000 lines ;-)
Moreover, it should be great to add option like --onemirror to see only one possible location for a package for automated download. I'm using portage/2.0.49-r4 from GRP installation 20030911.

Reproducible: Always
Steps to Reproduce:
Comment 1 SpanKY gentoo-dev 2004-02-20 12:11:22 UTC
`emerge world -pf >& list`

although it would be nice if it printed to stdout instead of stderr
Comment 2 Jan Kundrát (RETIRED) gentoo-dev 2004-02-21 08:26:34 UTC
thanks, I didn't realized it.

screen & output logging is also good, but stdout is stdout ;-)
Comment 3 Jan Kundrát (RETIRED) gentoo-dev 2004-03-02 06:15:16 UTC
even better, adding option like --new-files or something similar
should be good for determining files to be downloaded - I mean something like:
# emerge -pf --new-files kde > filelist
and it will print only files which are needed, but doesn't  exist in /usr/portage/distfiles
I now it could be done in many other ways, but I prefer simplicity ;-)
Comment 4 Jan Kundrát (RETIRED) gentoo-dev 2005-05-15 08:48:55 UTC
Closing the bug as it has been some time. Anyway, I don't think Portage should include option which will check if the file exists, some script would be better.