Summary: | etcupdate status should exit with rc != 0 whenever there is one or more conflicts | ||
---|---|---|---|
Product: | Base System | Reporter: | Trond Endrestøl <Trond.Endrestol> |
Component: | bin | Assignee: | freebsd-bugs (Nobody) <bugs> |
Status: | New --- | ||
Severity: | Affects Only Me | CC: | emaste, jhb |
Priority: | --- | ||
Version: | CURRENT | ||
Hardware: | Any | ||
OS: | Any |
Description
Trond Endrestøl
2021-03-17 20:14:16 UTC
Sorry, it was late in Norway. A workaround is to use the condition: etcupdate status | grep -q '^ C' Hmm, this sounds like a good idea. In regards to 'etcupdate status -p', what would that do? 'etcupdate status' already reports any status after 'etcupdate -p' as there is a single, shared conflicts/ tree, and a shared warnings file, so a bare 'etcupdate status' after 'etcupdate -p' should report the right status to permit, for example: etcupdate -p while ! etcupdate status; do etcupdate resolve -p done etcupdate while ! etcupdate status; do etcupdate resolve done One question is what should etcupdate status report if there are no conflicts but there are warnings (warnings can be for things like needed post-install actions that can't be performed in a chroot)? These potentially still require user intervention. |