Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add history redo command #1595

Merged
merged 6 commits into from
Jul 31, 2024
Merged

Add history redo command #1595

merged 6 commits into from
Jul 31, 2024

Commits on Jul 25, 2024

  1. Make get_package_types() from libdnf5::transaction::CompsGroup public

    So it can be used in to_replay() function.
    kontura committed Jul 25, 2024
    Configuration menu
    Copy the full SHA
    4511c11 View commit details
    Browse the repository at this point in the history
  2. Extract private API to_replay() for `libdnf5::transaction::Transact…

    …ion`
    
    It will be used later for transaction redo.
    kontura committed Jul 25, 2024
    Configuration menu
    Copy the full SHA
    6a5277b View commit details
    Browse the repository at this point in the history
  3. Add history redo command

    It adds a new goal API to redo a history transaction.
    kontura committed Jul 25, 2024
    Configuration menu
    Copy the full SHA
    dbcdad3 View commit details
    Browse the repository at this point in the history
  4. Add override_reasons to GoalJobSettings and use it in redo

    If a package is already installed in the requested version but with a different reason override the reason.
    This is useful when redoing an interrupted transaction.
    The longest part of a transaction is running rpm changes, saving reasons is done after rpm finishes. If a transaction
    is interrupted in the middle of the rpm part some rpms are changed but reasons are not updated at all. To handle this
    enforce the reasons in the selected transaction.
    kontura committed Jul 25, 2024
    Configuration menu
    Copy the full SHA
    7456326 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b09a033 View commit details
    Browse the repository at this point in the history
  6. replay: Allow up/down-grade if NA is already installed

    This makes a difference if `--ignore-installed` is set and the package
    is installed in a different version -> it upgrades/downgrades the
    package to the requested version.
    
    This matches dnf4 behavior.
    kontura committed Jul 25, 2024
    Configuration menu
    Copy the full SHA
    4887aa8 View commit details
    Browse the repository at this point in the history