Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 659742

Summary: app-portage/gpyutils-0.2.1: gpy-upgrade-impl python3_5 python3_6 doesn't catch sys-boot/grub
Product: Gentoo Linux Reporter: Pacho Ramos <pacho>
Component: Current packagesAssignee: Mike Gilbert <floppym>
Status: RESOLVED FIXED    
Severity: normal CC: axs, base-system, mgorny
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Pacho Ramos gentoo-dev 2018-07-01 07:46:42 UTC
Hi!

This morning I saw bug 659734 and I noticed that gpy-upgrade-impl doesn't catch it
# gpy-upgrade-impl python3_5 python3_6
app-misc/jira-cli:0
app-office/libreoffice-bin:0
app-portage/gentoolkit-dev:0
app-portage/gs-pypi:0
dev-python/pyrtf:0
dev-python/translate-toolkit:0
kde-apps/lokalize:5
net-misc/whatportis:0
Done.

I am not sure if maybe the if with GRUB_AUTOGEN is causing this to not be detected

Thanks
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-07-01 17:51:41 UTC
It's because of [[ ${PV} == 9999 ]] logic.  PYTHON_COMPAT is read via a poor man's bash parser that doesn't set PV, so the PYTHON_COMPAT branch is never executed.

This could be fixed by moving PYTHON_COMPAT outside the if.