Commit 78f5b1e
Extend Options with allow_erasing and allow_downgrade (#4996)
Add two new fields to the package manager Options:
- `allow_erasing` (`--allowerasing`): lets DNF remove packages that
obsolete or conflict with a requested install. Supported by DNF4 and
DNF5.
- `allow_downgrade` (`--allow-downgrade`): lets DNF5 downgrade
transitive
dependencies when a requested package requires an older version. DNF4
already permits this by default, so the flag is only emitted for DNF5.
- Both options raise `PrepareError` under `YumEngine` (no equivalent
flag).
Fixes #4909
---------
Co-authored-by: vaibhavdaren <vaibhavdaren@gmail.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>1 parent 8a80c4f commit 78f5b1e
2 files changed
Lines changed: 30 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
332 | 338 | | |
333 | 339 | | |
334 | 340 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
62 | 66 | | |
63 | 67 | | |
64 | 68 | | |
| |||
398 | 402 | | |
399 | 403 | | |
400 | 404 | | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
401 | 418 | | |
402 | 419 | | |
403 | 420 | | |
| |||
415 | 432 | | |
416 | 433 | | |
417 | 434 | | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
418 | 442 | | |
419 | 443 | | |
420 | 444 | | |
| |||
0 commit comments