Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 601446 - app-portage/portpeek-2.1.18 UnboundLocalError
Summary: app-portage/portpeek-2.1.18 UnboundLocalError
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mike Pagano
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-02 12:48 UTC by Erik Quaeghebeur
Modified: 2016-12-05 21:30 UTC (History)
0 users

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


Attachments
emerge --info (emerge.info,5.87 KB, application/x-info)
2016-12-03 22:30 UTC, Erik Quaeghebeur
Details
package.use (package.use,27.34 KB, text/plain)
2016-12-03 22:35 UTC, Erik Quaeghebeur
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Quaeghebeur 2016-12-02 12:48:41 UTC
While using portpeek-2.1.18 as `# portpeek -qa`, I got an UnboundLocalError (just after ‘package.use:’ line):

    Traceback (most recent call last):
      File "/usr/lib/python-exec/python3.4/portpeek", line 1499, in <module>
        get_recursive_info(USER_CONFIG_PATH + "/package.use")
      File "/usr/lib/python-exec/python3.4/portpeek", line 430, in get_recursive_info
        get_recursive_info(filename+os.path.sep+file_name)
      File "/usr/lib/python-exec/python3.4/portpeek", line 432, in get_recursive_info
        get_info(filename)
      File "/usr/lib/python-exec/python3.4/portpeek", line 458, in get_info
        diffs_found = parse_package_use(line,filename)
      File "/usr/lib/python-exec/python3.4/portpeek", line 629, in parse_package_use
        print_output(info,portage.output.yellow("\n" + orig_pkg_name + ": ") + portage.output.red(" Not Installed"),current_package)
    UnboundLocalError: local variable 'current_package' referenced before assignment
Comment 1 Mike Pagano gentoo-dev 2016-12-02 15:56:46 UTC
Hi.

Can you please attached your package.use, file and emerge --info?
Comment 2 Erik Quaeghebeur 2016-12-03 22:30:53 UTC
Created attachment 455024 [details]
emerge --info
Comment 3 Erik Quaeghebeur 2016-12-03 22:35:58 UTC
Created attachment 455026 [details]
package.use

concatenated from multiple files in /etc/portage/package.use/
Comment 4 Mike Pagano gentoo-dev 2016-12-04 00:43:26 UTC
Wow, that's some file.

Can you attach the output of portpeek -qad  

Thanks.
Comment 5 Mike Pagano gentoo-dev 2016-12-04 00:49:10 UTC
Nevermind, I reproduced it.
Comment 6 Mike Pagano gentoo-dev 2016-12-04 21:13:51 UTC
Can you unmask and try 2.1.21 ?

I just committed it a few minutes ago, so it may take a few hours to hit your mirror.
Comment 7 Erik Quaeghebeur 2016-12-05 21:30:58 UTC
(In reply to Mike Pagano from comment #6)
> Can you unmask and try 2.1.21 ?

The UnboundLocalerror is gone, so this bug seems fixed.