On Thu, Jul 06, 2017 at 04:35:38PM +0200, Ludovic Courtès wrote: > Efraim Flashner skribis: > > > * guix/scripts/lint.scm (check-for-updates): New procedure. > > (%checkers): Add it. > > Good idea. > > > +(define (check-for-updates package) > > + "Check if there is an update available for PACKAGE." > > + (guix-refresh (package-name package))) > > I think we should use the (guix upstream) API directly because > ‘guix-refresh’ can call ‘exit’ and it formats messages in a way that is > not consistent with the rest of ‘guix lint’. > > To do that I think we’ll first have to move ‘%updaters’ to (guix > upstream), probably turning it into a procedure. > > WDYT? > > Thanks, > Ludo’. > This actually wasn't too bad. I had to move %updaters and another function to guix/upstream, and then I copied the code for checking the upstream version vs the current version and tried to shorten it a bit. I tested it with 'guix lint -c refresh perl{,-svg}' -- Efraim Flashner אפרים פלשנר GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted