Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 25293 - make broken cat pipe go away
Summary: make broken cat pipe go away
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Nicholas Jones (RETIRED)
URL:
Whiteboard:
Keywords:
: 25329 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-07-25 18:55 UTC by SpanKY
Modified: 2011-10-30 22:19 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2003-07-25 18:55:58 UTC
heres a patch to make the broken cat pipe msg/error go away
Comment 1 SpanKY gentoo-dev 2003-07-25 22:40:44 UTC
in /usr/lib/python2.2/site-packages/portage.py: 
(line ~4787) 
old: 
notok=spawn("cat "+mytbz2+"| bzip2 -dq | tar xpf -",free=1)  
 
new: 
notok=spawn("bzip2 -dq "+mytbz2+" | tar xpf -",free=1)  
Comment 2 SpanKY gentoo-dev 2003-07-25 22:53:26 UTC
err that doesnt work properly because it'll actually bunzip the file ;x 
 
heres a working one: 
notok=spawn("bzcat -q "+mytbz2+" | tar xpf -",free=1) 
 
the issue of course is the information that is appended to the end of the tarball ... 
the cat breaks because the bzip2/tar combo finishs reading proper data ... cat 
however still wants to pass that extra info we generate but cant cause the ends of 
the pipes died 
 
since this is a non critical error, bzcat -q will not show the msg about garbage at 
the end of the file 
Comment 3 SpanKY gentoo-dev 2003-07-26 11:24:56 UTC
*** Bug 25329 has been marked as a duplicate of this bug. ***
Comment 4 Nicholas Jones (RETIRED) gentoo-dev 2003-07-28 23:55:44 UTC
It mews no more.
Comment 5 SpanKY gentoo-dev 2003-07-30 20:33:59 UTC
you added the wrong fix ;)

you want to add this:
notok=spawn("bzcat -q "+mytbz2+" | tar xpf -",free=1)
Comment 6 Marius Mauch (RETIRED) gentoo-dev 2003-09-29 02:17:46 UTC
seems to me that it is fixed.