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

Move offline from dnf5 to libdnf5 #1520

Merged
merged 5 commits into from
Jun 7, 2024
Merged

Move offline from dnf5 to libdnf5 #1520

merged 5 commits into from
Jun 7, 2024

Conversation

m-blaha
Copy link
Member

@m-blaha m-blaha commented May 30, 2024

We will need to share the code also with dnf5daemon-server to support
offline upgrades using D-Bus API.

For: https://bugzilla.redhat.com/show_bug.cgi?id=2124503

@m-blaha m-blaha marked this pull request as ready for review May 31, 2024 09:48
@kontura kontura self-assigned this Jun 5, 2024
Comment on lines 93 to 98
private:
/// Read offline transaction state data from the file
void read();
std::exception_ptr read_exception;
std::filesystem::path path;
OfflineTransactionStateData data;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we hide this into a p_impl?
Perhaps also the OfflineTransactionStateData could store the data in p_impl and have a bunch of getters/setters for the values?

This would allow us to do modifications later without breaking ABI.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds reasonable, thanks!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added a commit with pImpls for both classes.

include/libdnf5/transaction/offline.hpp Outdated Show resolved Hide resolved
We will need to share the code also with dnf5daemon-server to support
offline upgrades using D-Bus API.
This change would allow us to do modification to these classes without
breaking ABI.
@kontura
Copy link
Contributor

kontura commented Jun 7, 2024

Thanks!

@kontura kontura added this pull request to the merge queue Jun 7, 2024
Merged via the queue into main with commit 3fa8d63 Jun 7, 2024
14 of 15 checks passed
@kontura kontura deleted the mblaha/offline-move branch June 7, 2024 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants