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

Bug 518154

Summary: check for DISTDIR file permissions before reading
Product: Portage Development Reporter: David Watzke <david>
Component: UnclassifiedAssignee: Portage team <dev-portage>
Status: UNCONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description David Watzke 2014-07-26 11:15:02 UTC
Hi, I've recently manually downloaded a tar.gz archive for oracle-jdk-bin package and placed it into the distfiles directory but it had wrong permissions and portage couldn't read it.

But from the error message portage printed it's unclear what the problem is:

>>> Unpacking jdk-7u65-linux-x64.tar.gz to /mnt/portage-tmp/portage/dev-java/oracle-jdk-bin-1.7.0.65/work
gzip: abort: read error on /mnt/portage-tmp/portage/dev-java/oracle-jdk-bin-1.7.0.65/distdir/jdk-7u65-linux-x64.tar.gz
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors

Could you please add a file-readability check before trying to unpack the archive and handle this exception better?

Thanks!