Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 915055 - app-portage/gentoolkit-0.6.1-r3: rerun of eclean-dist -d results in UnboundLocalError
Summary: app-portage/gentoolkit-0.6.1-r3: rerun of eclean-dist -d results in UnboundLo...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2023-10-01 21:00 UTC by Erik Quaeghebeur
Modified: 2023-10-02 17:23 UTC (History)
0 users

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


Attachments
fix-verb.patch (file_915055.txt,509 bytes, patch)
2023-10-02 17:23 UTC, Sam James
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Quaeghebeur 2023-10-01 21:00:10 UTC
I have app-portage/gentoolkit-0.6.1-r3 installed. I ran

# eclean-dist -dp
…
# eclean-dist -d
…
# eclean-dist -dp

The last call resulted in the following output:
---
 * Building file list for distfiles cleaning...
 * Your distfiles directory was already clean.

   The following unavailable files were saved from cleaning due to exclusion file entries
 [   80.6 M ] teams_1.4.00.26453_amd64.deb
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.11/eclean-dist", line 41, in <module>
    main()
  File "/usr/lib/python3.11/site-packages/gentoolkit/eclean/cli.py", line 679, in main
    doAction(action, options, exclude=exclude, output=output)
  File "/usr/lib/python3.11/site-packages/gentoolkit/eclean/cli.py", line 599, in doAction
    output.total("deprecated", clean_size, len(saved), verb, action)
                                                       ^^^^
UnboundLocalError: cannot access local variable 'verb' where it is not associated with a value
---
So it seems there is some bug in eclean. 

Reproducible: Always
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-10-02 17:23:52 UTC
Created attachment 872049 [details, diff]
fix-verb.patch

Untested, but this looks like it'll do it.