Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 392043 - app-portage/eclean-kernel-0.2: NameError: global name 'errno' is not defined
Summary: app-portage/eclean-kernel-0.2: NameError: global name 'errno' is not defined
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-27 01:36 UTC by trogdog
Modified: 2011-11-30 08:26 UTC (History)
1 user (show)

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


Attachments
Patch to add the missing package (eclean-kernel-0.2-errno_fix.patch,526 bytes, patch)
2011-11-28 20:02 UTC, Balint SZENTE
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description trogdog 2011-11-27 01:36:40 UTC
running eclean-kernel -ap results in python error

Reproducible: Always

Steps to Reproduce:
1.eclean-kernel -ap
2.
3.
Actual Results:  
HP ~ # eclean-kernel -ap
Traceback (most recent call last):
  File "/usr/bin/eclean-kernel-2.7", line 26, in <module>
    sys.exit(main(sys.argv))
  File "/usr/lib64/python2.7/site-packages/ecleankernel/cli.py", line 113, in main
    debug = debug)
  File "/usr/lib64/python2.7/site-packages/ecleankernel/bootloader/__init__.py", line 21, in get_bootloader
    if e.errno != errno.ENOENT:
NameError: global name 'errno' is not defined

Expected Results:  
list of kernel elements that could be cleaned or message stating all is well

Sorry to do this to you again Michal, I have 6 boxes exhibiting this behaviour since upgrading to 0.2. eclean-kernel -l works fine, but -ap throws an error. Do you need additional info?
Comment 1 Balint SZENTE 2011-11-28 19:47:12 UTC
I can confirm this. It happens exactly the same way on my amd64 system.
Comment 2 Balint SZENTE 2011-11-28 20:02:28 UTC
Created attachment 294091 [details, diff]
Patch to add the missing package

Just adding "import errno" fixes the problem.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2011-11-30 08:26:47 UTC
Sorry, it was a mistake when moving the code from one module to another. Fixed in 0.2.1.