Commit ac28ca3
committed
Change allow_vendor_change default to false with descriptive hint
- Change the default value of `allow_vendor_change` from `true` to `false` so packages stick to
their original vendor during upgrades (rpm-software-management#712)
- When the solver blocks an update due to a vendor change restriction, print a hint suggesting
`--setopt=allow_vendor_change=true` (rpm-software-management#750)
A previous attempt to change this default was reverted because solver errors gave no indication
that vendor locking was the cause. The new hint in `print_resolve_hints()` addresses that by
detecting `RULE_UPDATE` problems and telling the user how to override the restriction.
Closes: rpm-software-management#712 rpm-software-management#750 SWMBZBUGSM-153 BZ#2219624
CI Tests: rpm-software-management/ci-dnf-stack#1839
Signed-off-by: Fellipe Henrique <me@fhbash.com>1 parent ebd2dbc commit ac28ca3
4 files changed
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1107 | 1107 | | |
1108 | 1108 | | |
1109 | 1109 | | |
| 1110 | + | |
1110 | 1111 | | |
1111 | 1112 | | |
1112 | 1113 | | |
| |||
1129 | 1130 | | |
1130 | 1131 | | |
1131 | 1132 | | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
1132 | 1136 | | |
1133 | 1137 | | |
1134 | 1138 | | |
| |||
1151 | 1155 | | |
1152 | 1156 | | |
1153 | 1157 | | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
1154 | 1163 | | |
1155 | 1164 | | |
1156 | 1165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
| 168 | + | |
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | | - | |
| 208 | + | |
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| |||
0 commit comments