Skip to content

Conversation

@lslezak
Copy link
Member

@lslezak lslezak commented Jun 27, 2025

Problem

Solution

  • Initial implementation with subset of callbacks and passing just minimal data to YaST

TODO

  • Fix indentation (VSCode displays it correctly...)
  • Add changes 😃

@imobachgs imobachgs marked this pull request as ready for review June 30, 2025 14:38
@imobachgs imobachgs force-pushed the new_libzypp_callbacks branch from 9ccbf71 to f14f0ae Compare June 30, 2025 14:39
YCPValue CallbackDonePackage (const YCPValue& /*nil*/ args);

/* TYPEINFO: void(void(map<string,any>)) */
YCPValue CallbackStartInstallResolvableSA( const YCPValue& args );
Copy link
Member

Choose a reason for hiding this comment

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

The meaning of the "SA" suffix is a mystery :(

Copy link
Member

@mvidner mvidner left a comment

Choose a reason for hiding this comment

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

Docs: missing, even though we have tooling for it. I will add it.

Code: looks good

Dependencies: surprisingly to me, the Zypp API is old so the BuildRequires are already fine

YCPValue PkgFunctions::CallbackStartInstallResolvableSA( const YCPValue& args ) {
return SET_YCP_CB( CB_StartInstallResolvableSA, args );
}
YCPValue PkgFunctions::CallbackProgressInstallResolvableSA( const YCPValue& args ) {
Copy link
Member

Choose a reason for hiding this comment

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

The additional integer argument to the callback is precentage from 0 to 100??

Copy link
Member

@mvidner mvidner left a comment

Choose a reason for hiding this comment

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

With my docs improvement I consider it good enough :-)

@mvidner
Copy link
Member

mvidner commented Jul 1, 2025

BTW #168 (from 2021, unfinished) was a previous attempt of implementing this kind of "single transaction" Zypp callbacks.

@imobachgs imobachgs merged commit 853496f into master Jul 1, 2025
2 checks passed
@imobachgs imobachgs deleted the new_libzypp_callbacks branch July 1, 2025 12:41
@github-actions
Copy link

github-actions bot commented Jul 1, 2025

✅ Autosubmission job #15999626083 successfully finished
✅ Created submit request #1289530

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.

4 participants