-
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
Query realdep and index improvement #696
Conversation
I still think returning an error is much better than silently skipping it. |
libdnf/sack/query.cpp
Outdated
if (reldeplist->count()) { | ||
pImpl->filters.push_back(Filter(keyname, HY_EQ, reldeplist)); | ||
} else { | ||
addFilter(HY_PKG_EMPTY, HY_EQ, 1); |
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 not pImpl->filters.push_back(Filter(HY_PKG_EMPTY, HY_EQ, 1));
?
If provided string to a query is incorrectly formatted, the query should be empty. https://bugzilla.redhat.com/show_bug.cgi?id=1687135
The formal implementation results in Segmentation fault (core dumped).
@ignatenkobrain Yes, hiding errors can bring problems later. |
📌 Commit ae2f46a has been approved by |
The formal implementation results in Segmentation fault (core dumped). Closes: #696 Approved by: jrohel
☀️ Test successful - status-papr |
No description provided.