Repository navigation
add portage backend - #3676
add portage backend#3676
Conversation
|
/claude review |
Claude reviewTwo bugs need fixing before merge.
|
|
/claude review |
Claude reviewThe
|
|
/claude review |
| if err != nil { | ||
| if exitErr, ok := errors.AsType[*exec.ExitError](err); ok { | ||
| switch exitErr.ExitCode() { | ||
| case 1: |
There was a problem hiding this comment.
emerge --pretend exits 0 when it lists updates. It exits 1 when dependency resolution fails, for example a slot conflict, a blocker, or masked or keyworded deps. This branch turns that failure into a successful check. The output has no [ebuild lines, so the user sees "up to date" while their @world is actually broken. Return the error here instead, and include the captured stderr so the log shows why. Note that cmd.Output() currently throws stderr away.
Claude reviewInteractive updates now keep portage ignores, because
|
|
/claude review |
Claude reviewNo new issues found. A failed |
|
Yeah, the pkexec is deliberate, there is no clean way to look for updates without root, if someone knowingly setups background updates anyway they will deal have to deal with pkexec prompts |
|
Possible Workarounds (Albeit they all suck and shouldn't be done):
|
* add portage backend * portage: add excludes
Description
Adds a portage Backend, for Gentoo system updates
Type of change
Related issues
Screenshots / video
Checklist
I18n.tr()with translator context, reusing existing terms where possiblemake fmt, added/updated tests,make testpasses, andgo mod tidyis cleanmake lint-qmlwith no new warnings