Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 518154 - check for DISTDIR file permissions before reading
Summary: check for DISTDIR file permissions before reading
Status: UNCONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-26 11:15 UTC by David Watzke
Modified: 2014-07-28 11:46 UTC (History)
0 users

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 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!