-
Notifications
You must be signed in to change notification settings - Fork 33
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
eclean: output InvalidDepstring info in findPackages #43
Conversation
bc81ea9
to
69e7b7b
Compare
pym/gentoolkit/eclean/search.py
Outdated
file=sys.stderr, | ||
) | ||
print(pp.error(er)) | ||
exit(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.
I suppose if the binpkg was at fault here then we might behave as though _deps_equal returned False and just delete binpkg with possibly a warning message. Invalid ebuild deps being fatal seems reasonable though.
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.
Yeah, a bad binpkg should get deleted. I figured this would be a good start to at least find out what was broken on his 2 systems. We can leave this PR open for awhile until we here back from the Stuart.
Plus I need to create some errors to properly test it.
I think there's a mistake in the update where
|
Yeah, that was my bad :( |
Ah - now this is useful (although is the "another exception" exception expected?)
… is looks as if the issue is an empty Ruby dependency - so I guess my follow-on questions are:
|
In ::gentoo, it would be a CI error for that to happen. The issue is that with For cases like this, we should probably warn-and-move-on, as the user may not want to lose their binpkg built against old Ruby? |
In this case, even though there was an overlay which contained an old
I agree with this! |
Add try/except pair to _deps_equal() to output relavent details causing the exception in order to aid the user to fix the issue. Mark binpkg dep failures as a non match for possible deletion. Make the ebuild dep failure a warning only, return True to save the binpkg. Add parameter docstring info Bug: https://bugs.gentoo.org/923439 Signed-off-by: Brian Dolbec <[email protected]>
136f26a
to
d61304e
Compare
Signed-off-by: Brian Dolbec <[email protected]>
Signed-off-by: Brian Dolbec <[email protected]>
Signed-off-by: Brian Dolbec <[email protected]>
Pushed to primary gentoo repo |
Add try/except pair to _deps_equal() calls to output relavent details causing the exception in order to aid the user to fix the issue.
Bug: https://bugs.gentoo.org/923439