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

dnfdaemon: Support to run transactions offline #1543

Merged
merged 5 commits into from
Jul 10, 2024

Commits on Jul 3, 2024

  1. dnfdaemon: Support for running a transaction offline

    The patch adds a new supported option "offline" to the do_transaction
    method of the Goal interface. If set to "true", the transaction is not
    executed, but only prepared to run during the next reboot.
    m-blaha committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    de57714 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d21f55e View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2024

  1. dnfdaemon: Add new API for offline transactions

    Adds new `Offline` interface for interacting with offline transactions.
    The interface provides three methods:
    
    - check_pending() - check whether there is an offline update scheduled
      for the next reboot
    
    - cancel() - cancel the scheduled offline update
    
    - clean() - cancel the scheduled offline update and remove all
      stored offline transaction data.
    
    - set_finish_action() - to set whether after applying the offline
      transaction the system should be rebooted (default) or powered off.
    m-blaha committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    e7db9ec View commit details
    Browse the repository at this point in the history
  2. dnfdaemon: Strict set_finish_action() value check

    Check that only one of "poweroff", or "reboot" value was passed to
    set_finish_action() call.
    m-blaha committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    29e5323 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2024

  1. dnfdaemon: Replace check_pending() with get_status()

    Replace check_pending() method of the Offline interface with richer
    get_status() method. The new method returns two values:
    - boolean whether there is a dnf5 offline transaction scheduled for the
      next reboot
    - a string->variant dictionary with the status of the dnf5 offline
      transaction
    m-blaha committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    c84ab42 View commit details
    Browse the repository at this point in the history