-
Notifications
You must be signed in to change notification settings - Fork 8
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
base: master
Are you sure you want to change the base?
Conversation
c2b1b9b
to
a087997
Compare
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.
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(); |
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'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.)
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.
looks like there is already #include "log.h"
which should include y2util/y2log which hopefully should be enough.
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.
hmm, it defined y2milestone and not ycpmilestone. Let me check if there is difference between them.
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.
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.
0306535
to
b0ffbf0
Compare
Problem
Libzypp has bunch of unused reports and pkg-bindings still use it.
openSUSE/libzypp#610
Solution
make them noop and mark as deprecated.