Summary: | sys-apps/portage TypeError: Can't convert 'bool' object to str implicitly | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Mike Gilbert <floppym> |
Component: | Core | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED FIXED | ||
Severity: | normal | Keywords: | InVCS |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 611328 |
Description
Mike Gilbert
2017-01-26 02:54:04 UTC
I bisected this to the following commit. commit f143e58dd3fd80ab67121e7a62e8cf47151d3907 Author: Alexandru Elisei <alexandru.elisei@gmail.com> Date: Wed Jan 18 19:15:54 2017 +0200 emaint: exit with non-zero status code when module fails (bug 567478) Module functions currently return a message to emaint after invocation. Emaint prints this message then exits normally (with a success return code) even if the module encountered an error. This patch aims to change this by having each module public function return a tuple of (returncode, message), where returncode is boolean True if the function was successful or False otherwise. Emaint will inspect the return codes and exit unsuccessfully if necessary. The variable PORT_LOGDIR was added to the test environment to prevent CleanLogs.clean() from failing when the variable isn't set or not a directory. I sent a patch to the list for review. |