Skip to content

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.

21 points10 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
21 · 100% up
Kind
Text
ID
da3p72

Author

2
posts
14
comments
0
media
View profile

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 urlwatch or nvchecker.

EDIT: It's also not async, so if you maintain hundreds of packages this is quite slow.

13 points

Thanks for your feedback and for pointing me in the right direction. This is just a start, im planning to improve it of course.

6 points

Personally I use nvchecker for this. I have an alias set up which points to a configuration file with details of my AUR packages:

alias aurchecker='nvchecker /mnt/data/aur/source.ini'

The source.ini file looks like this:

[__config__]
oldver = current.txt
newver = new.txt

[package1]
pypi = <package name on pypi>

[package2]
github = <username>/<projectname on github>

And the current.txt lists the currently packages version numbers:

package1 2.3.2
package2 0.11.5

So then I can just run aurchecker from any terminal and it tells me which packages are out of date.

1 points

Do you need to manually enter package versions inside current.txt

1 points

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 nvtake command 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.

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.