[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#27596] [PATCH] guix: lint: Add checker for new upstream versions.
From: |
Ludovic Courtès |
Subject: |
[bug#27596] [PATCH] guix: lint: Add checker for new upstream versions. |
Date: |
Thu, 06 Jul 2017 16:35:38 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) |
Efraim Flashner <address@hidden> 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’.