-
Notifications
You must be signed in to change notification settings - Fork 86
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
Conversation
76abaa4
to
2fb5a9e
Compare
private: | ||
/// Read offline transaction state data from the file | ||
void read(); | ||
std::exception_ptr read_exception; | ||
std::filesystem::path path; | ||
OfflineTransactionStateData data; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds reasonable, thanks!
There was a problem hiding this comment.
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.
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.
62643ae
to
f20c6f9
Compare
Thanks! |
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