-
Notifications
You must be signed in to change notification settings - Fork 7
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
Some AUR packages are in to update instead of previous section #31
Comments
Bumping this as |
Ok I'll get working on this |
The function sometimes accepts version tags as newer versions even though it is not the case, the whole function has been rewritten to work as follows: - checks every number between dots one by one - if it is a number (or 'r' + number) and it is different, then it returns the comparaison of the number - if it is the same number, then it ignores and iterate to the next number - if it is not a number but a commit hash, it returns true if is different. In all cases, commit hashes must be placed at the end of version tags so a complete return would work as intended A series of tests has been done on this function and can be run online, with comparaison with the previous implementation: https://go.dev/play/p/QUm8zPl_Ngw Fixes ericm#31
The function sometimes accepts version tags as newer versions even though it is not the case, the whole function has been rewritten to work as follows: - checks every number between dots one by one - if it is a number (or 'r' + number) and it is different, then it returns the comparison of the number - if it is the same number, then it ignores and iterate to the next number - if it is not a number but a commit hash, it returns true if is different. In all cases, commit hashes must be placed at the end of version tags so a complete return would work as intended A series of tests has been done on this function and can be run online, with comparison with the previous implementation: https://go.dev/play/p/QUm8zPl_Ngw Fixes ericm#31
For some reason, there are values a and b that returns true for both I have been working on an implementation that would solve this problem, I have rewritten the function entirely. I have done some tests to try out the implementation, you can find it here: https://go.dev/play/p/QUm8zPl_Ngw Hope that helps! |
This looks great! I'll get reviewing #39 |
I have multiple packages installed from AUR which are offered for update every time I run
yup
but IMHO they shouldn't.I.e. in todays output:
I believe that 1, 2, 3, 4 and 7 are more recent then AUR versions and should be in "found X local pcakges that are newer" section.
If I'm right, it seems that
newerVersion
function might be to blame:yup/update/update.go
Line 154 in eb8e4e8
I'm not really fluent in Go and I'm not sure if I'm correct so no pull request (at least for now).
Thanks
The text was updated successfully, but these errors were encountered: