You are not logged in.

#1 2020-10-31 18:37:46

arisinfenix
Member
From: Germany
Registered: 2018-06-20
Posts: 37

checkaurupdates - Show AUR updates in the style of checkupdates

Just a small script that checks for AUR updates and displays them in the style of checkupdates.

https://github.com/arisinfenix/checkaurupdates

Last edited by arisinfenix (2020-11-01 16:21:21)

Offline

#2 2020-11-01 04:06:44

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: checkaurupdates - Show AUR updates in the style of checkupdates

Do you properly handle the max size of an url query for people with many packages? https://wiki.archlinux.org/index.php/Au … imitations


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#3 2020-11-01 09:26:53

arisinfenix
Member
From: Germany
Registered: 2018-06-20
Posts: 37

Re: checkaurupdates - Show AUR updates in the style of checkupdates

Not yet. Thank you for the hint.

Offline

#4 2020-11-01 12:39:19

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,407
Website

Re: checkaurupdates - Show AUR updates in the style of checkupdates

I would not hardcode pacman -Qqm - AUR packages are not necessarily foreign packages. You could take pkgname/pkgver strings from stdin instead.

Calling vercmp a high amount of times will get pretty slow, I'd suggest to first check for version equality ([[ $local_version == "$aur_version" ]])

curl -f ... || exit allows the script to exit on server errors.


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#5 2020-11-01 16:30:06

arisinfenix
Member
From: Germany
Registered: 2018-06-20
Posts: 37

Re: checkaurupdates - Show AUR updates in the style of checkupdates

Thanks for your input Alad. smile

Updated the script. Replacing pacman -Qmq and check for curl success will follow...

Offline

Board footer

Powered by FluxBB