AUR version checker
Hello guys, I have created a simple script that checks for AUR package versions on upstream urls. It accepts maintainer name and file containing name of package(has to be the same as in AUR), url where to check for version and regex to search for version. I know also that everyone who maintains AUR packages has some kind of script that automates the task so I would like to hear what you think about it.
Here is the link to github repo: https://github.com/XdaemonX/aur_version_checker
Edited 27 Sep 2019. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 21 · 100% up
- Kind
- Text
- ID
- da3p72
10 comments
A bit naive as you are assuming that the top version is the latest and greatest. Multiple larger projects operate with multiple branches of releases, latest and lts releases as an example, with which version appearing first being intertwined or arbiterary.
Check out
urlwatchornvchecker.EDIT: It's also not async, so if you maintain hundreds of packages this is quite slow.
Thanks for your feedback and for pointing me in the right direction. This is just a start, im planning to improve it of course.
its good keep it up. we're all in that phase of learning new stuff..
Thank you and I agree
I did something in bash, but my script need verify the version correctly (not lexically as it is), and i need fix somethings too, it is a work in progress but you can see it here: https://github.com/semeion/auru
Personally I use nvchecker for this. I have an alias set up which points to a configuration file with details of my AUR packages:
The
source.inifile looks like this:And the current.txt lists the currently packages version numbers:
So then I can just run
aurcheckerfrom any terminal and it tells me which packages are out of date.Do you need to manually enter package versions inside current.txt
I do. If you don't have an entry for a package nvchecker reports its latest version number, and I think you can make it update current.txt automatically when checking. According to the README, there's also an
nvtakecommand which updates records for you. However, I personally prefer to edit it manually when I have pushed a new version to the AUR. I'm already editing files in that directory so its not a hassle, and if there's multiple packages needing updating and I don't have time to do them all straight away, I don't want the version numbers automatically updated in case I forget about them later.