1 Subject: update-alternatives: warn when multiple providers have the same priority
3 Upstream-Status: Pending
5 Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
7 update-alternatives | 3 +++
8 1 file changed, 3 insertions(+)
10 diff --git a/update-alternatives b/update-alternatives
11 index ca01d5d..ffad853 100644
12 --- a/update-alternatives
13 +++ b/update-alternatives
14 @@ -90,6 +90,9 @@ add_alt() {
17 remove_alt $name $path
18 + if grep -qw "$priority" $ad/$name; then
19 + echo "Warn: update-alternatives: $name has multiple providers with the same priority, please check $ad/$name for details"
21 echo "$path $priority" >> $ad/$name