-
Notifications
You must be signed in to change notification settings - Fork 140
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
[merged] report all problem rules to user (RhBug:1148627) #191
[merged] report all problem rules to user (RhBug:1148627) #191
Conversation
return NULL; | ||
} | ||
const char **plist = hy_goal_describe_problem_rules(self->goal, | ||
PyLong_AsLong(index_obj)); |
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.
fix indent
} | ||
|
||
list = strlist_to_pylist(plist); | ||
g_free(plist); |
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.
free(plist)
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.
It's g_free() to make it consistent with efcc178.
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.
luckily gchar
is just alias for char
, otherwise it could cause problems. I think in CPython we should use free
when we use char *
. Or change char *
to gchar *
some lines above and change type of function in hawkey.
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.
but nvm for now, we can fix it later
@@ -46,6 +46,7 @@ | |||
#include "hy-selector-private.h" | |||
#include "hy-util.h" | |||
|
|||
#define BLOCK_SIZE 15 |
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.
Why is the the BLOCK_SIZE
set to 15
? Please explain this in a comment in the sources.
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.
It seems to be optimal value for the purpose. Similarly to
libdnf/dnf-sack.c: const int BLOCK_SIZE = 31;
libdnf/hy-package.c:#define BLOCK_SIZE 31
libdnf/hy-query.c:#define BLOCK_SIZE 15
libdnf/hy-subject.c: const int BLOCK_SIZE = 6;
python/hawkey/subject-py.c: const int BLOCK_SIZE = 6;
{ | ||
g_autoptr(GError) error = NULL; | ||
DnfSack *sack = test_globals.sack; | ||
DnfPackage *pkg = get_latest_pkg(sack, "hello"); |
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 hope we can use g_autoptr() here as well and remove unref somewhere below.
@dnf-bot r+ |
📌 Commit 280c726 has been approved by |
Closes: #191 Approved by: ignatenkobrain
Closes: #191 Approved by: ignatenkobrain
☀️ Test successful - status-rpmecosystemjenkins |
get more info from libsolv about failed transactions; e.g.