Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 306121 - app-portage/gentoolkit-0.3.0_rc9: 'equery size' crashes if any of a package's files are missing
Summary: app-portage/gentoolkit-0.3.0_rc9: 'equery size' crashes if any of a package's...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 237964
  Show dependency tree
 
Reported: 2010-02-20 22:40 UTC by Alec Meyers
Modified: 2010-04-06 10:02 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 Alec Meyers 2010-02-20 22:40:57 UTC
Sometimes there are reasons to delete certain files installed by a package - for instance, if I enable splitdebug, and I no longer need the debug information, I can safely delete the debug files.

However, in the latest version of gentoolkit (0.3.0_rc9), equery crashes if it does not find a file:

# equery size openoffice
Traceback (most recent call last):
  File "/usr/bin/equery-2.6", line 35, in <module>
    equery.main()
  File "/usr/lib64/python2.6/site-packages/gentoolkit/equery/__init__.py", line 343, in main
    loaded_module.main(module_args)
  File "/usr/lib64/python2.6/site-packages/gentoolkit/equery/size.py", line 189, in main
    display_size(matches)
  File "/usr/lib64/python2.6/site-packages/gentoolkit/equery/size.py", line 81, in display_size
    size, files, uncounted = pkg.size()
  File "/usr/lib64/python2.6/site-packages/gentoolkit/package.py", line 318, in size
    for st in unique_file_stats:
  File "/usr/lib64/python2.6/site-packages/gentoolkit/package.py", line 315, in <genexpr>
    unique_file_stats = (x for x in content_stats if x.st_ino not in seen
  File "/usr/lib64/python2.6/site-packages/gentoolkit/package.py", line 313, in <genexpr>
    content_stats = (os.lstat(x) for x in self.parsed_contents())
OSError: [Errno 2] No such file or directory: '/usr/lib/debug/usr/lib64/openoffice/basis3.1/program/libepslx.so.debug'
Comment 1 Douglas Anderson 2010-03-04 04:08:36 UTC
Thanks for the bug report.

$ svn ci -m "Rewrites package.Package.size to better handle files that have been manually removed from the file system."
Sending        gentoolkit/package.py
Transmitting file data .
Committed revision 244.
Comment 2 Christian Ruppert (idl0r) gentoo-dev 2010-04-06 10:02:18 UTC
This bug has been fixed in app-portage/gentoolkit-0.3.0_rc10, thanks for reporting this issue.