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

Bug 597132

Summary: app-portage/gentoolkit-0.3.2-r1: eread: line 64: break: only meaningful in a `for', `while', or `until' loop
Product: Gentoo Linux Reporter: Amadeusz Żołnowski (RETIRED) <aidecoe>
Component: Current packagesAssignee: Portage Tools Team <tools-portage>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Amadeusz Żołnowski (RETIRED) gentoo-dev 2016-10-14 20:04:39 UTC
When running eread for empty elog dir, it loops forever:

This is a list of portage log items. Choose a number to view that file or type q to quit.

No log items to read
/usr/bin/eread: line 64: break: only meaningful in a `for', `while', or `until' loop
Comment 1 Paul Varner (RETIRED) gentoo-dev 2016-10-17 16:44:57 UTC
The code in question is inside a function inside an until loop and this used to work fine. However, I will refactor the code to put the until loop in the function and fix the issue.
Comment 2 Paul Varner (RETIRED) gentoo-dev 2016-10-17 17:41:40 UTC
Fix pushed to the gentoolkit repository.
https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=b5e71f6f2ed3483422df611fc2450081c72332ac

This can be tested with gentoolkit-9999