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

drop unused reports (see https://github.com/openSUSE/libzypp/pull/610) #191

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jreidinger
Copy link
Member

Problem

Libzypp has bunch of unused reports and pkg-bindings still use it.

openSUSE/libzypp#610

Solution

make them noop and mark as deprecated.

@jreidinger jreidinger force-pushed the drop_unused_report branch 2 times, most recently from c2b1b9b to a087997 Compare January 31, 2025 16:16
Copy link
Member

@lslezak lslezak left a comment

Choose a reason for hiding this comment

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

Please add logging so we can find the callers and update them.

* @param string args Name of the callback handler function. Required callback prototype is <code>void(string url)</code>. The callback is evaluated when a source creation has been started.
* @return void
*/
YCPValue PkgFunctions::CallbackSourceCreateStart( const YCPValue& args)
{
return SET_YCP_CB( CB_SourceCreateStart, args);
return YCPVoid();
Copy link
Member

Choose a reason for hiding this comment

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

I'd add some logging to easily find the obsolete calls in the Ruby code:

ycpmilestone("Pkg::CallbackSourceCreateStart is obsolete and does nothing, remove it");

This logs the Ruby place where it was called from.

(Needs #include <ycp/y2log.h> at the top.)

Copy link
Member Author

Choose a reason for hiding this comment

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

looks like there is already #include "log.h" which should include y2util/y2log which hopefully should be enough.

Copy link
Member Author

Choose a reason for hiding this comment

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

hmm, it defined y2milestone and not ycpmilestone. Let me check if there is difference between them.

Copy link
Member Author

Choose a reason for hiding this comment

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

ok, there is different y2milestone report file nad location when it is called. ycpmilestone will use yast info about location, so probably the right ruby location. So lets add that header.

@jreidinger jreidinger marked this pull request as ready for review January 31, 2025 20:19
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