Summary: | repoman tracebacks on unreadable files | ||
---|---|---|---|
Product: | Portage Development | Reporter: | SpanKY <vapier> |
Component: | Repoman | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED FIXED | ||
Severity: | trivial | Keywords: | InVCS |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 373933 |
This is fixed in git: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=d3d1aee93c9c5f04612c9237d452e9885c10af6d This is in 2.2.0_alpha42, but I'll leave this bug open until it's in an unmasked release. This is fixed in 2.1.10.4. |
a core file happened to be in my $PWD that wasnt readable, and repoman did not care for it simple way to reproduce: $ touch f $ chmod 000 f $ repoman scan RepoMan scours the neighborhood... >>> Creating Manifest for /usr/local/gentoo-x86/sys-devel/binutils Traceback (most recent call last): File "/usr/bin/repoman", line 1099, in <module> mysettings=repoman_settings, myportdb=portdb) File "/usr/lib64/portage/pym/portage/package/ebuild/digestgen.py", line 154, in digestgen "assume-digests" in mysettings.features)) File "/usr/lib64/portage/pym/portage/manifest.py", line 352, in create self.fhashdict[mytype][f] = perform_multiple_checksums(self.pkgdir+f, self.hashes) File "/usr/lib64/portage/pym/portage/checksum.py", line 282, in perform_multiple_checksums rVal[x] = perform_checksum(filename, x, calc_prelink)[0] File "/usr/lib64/portage/pym/portage/checksum.py", line 248, in perform_checksum myhash, mysize = hashfunc_map[hashname](myfilename) File "/usr/lib64/portage/pym/portage/checksum.py", line 33, in pyhash encoding=_encodings['fs'], errors='strict'), 'rb') IOError: [Errno 13] Permission denied: '/usr/local/gentoo-x86/sys-devel/binutils/f'