Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Apr 2021 19:22:27 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 254367] etcupdate status should exit with rc != 0 whenever there is one or more conflicts
Message-ID:  <bug-254367-227-gUQJDC7dPQ@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-254367-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-254367-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D254367

--- Comment #2 from John Baldwin <jhb@FreeBSD.org> ---
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' a=
fter
'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 conflic=
ts
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 requ=
ire
user intervention.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-254367-227-gUQJDC7dPQ>