From: Efraim Flashner <efraim@flashner.co.il>
To: 27596@debbugs.gnu.org
Subject: [bug#27596] [PATCH] guix: lint: Add checker for new upstream versions.
Date: Thu, 6 Jul 2017 13:17:23 +0300 [thread overview]
Message-ID: <20170706101723.3349-1-efraim@flashner.co.il> (raw)
* guix/scripts/lint.scm (check-for-updates): New procedure.
(%checkers): Add it.
---
guix/scripts/lint.scm | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/guix/scripts/lint.scm b/guix/scripts/lint.scm
index 04ab85299..665db158c 100644
--- a/guix/scripts/lint.scm
+++ b/guix/scripts/lint.scm
@@ -35,6 +35,7 @@
#:use-module (guix utils)
#:use-module (guix memoization)
#:use-module (guix scripts)
+ #:use-module (guix scripts refresh)
#:use-module (guix gnu-maintenance)
#:use-module (guix monads)
#:use-module (guix cve)
@@ -72,6 +73,7 @@
check-mirror-url
check-license
check-vulnerabilities
+ check-for-updates
check-formatting
run-checkers
@@ -821,6 +823,10 @@ from ~s: ~a (~s)~%")
(string-join (map vulnerability-id unpatched)
", ")))))))))
+(define (check-for-updates package)
+ "Check if there is an update available for PACKAGE."
+ (guix-refresh (package-name package)))
+
\f
;;;
;;; Source code formatting.
@@ -972,6 +978,10 @@ or a list thereof")
(CVE) database")
(check check-vulnerabilities))
(lint-checker
+ (name 'refresh)
+ (description "Check the package for new upstream releases")
+ (check check-for-updates))
+ (lint-checker
(name 'formatting)
(description "Look for formatting issues in the source")
(check check-formatting))))
--
2.13.2
next reply other threads:[~2017-07-06 10:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-06 10:17 Efraim Flashner [this message]
2017-07-06 14:35 ` [bug#27596] [PATCH] guix: lint: Add checker for new upstream versions Ludovic Courtès
2017-08-01 11:20 ` Efraim Flashner
2017-08-22 13:17 ` Ludovic Courtès
2017-10-07 20:50 ` Ludovic Courtès
2017-10-08 19:49 ` Efraim Flashner
2017-10-09 7:28 ` Ludovic Courtès
2017-10-09 11:17 ` bug#27596: " Efraim Flashner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170706101723.3349-1-efraim@flashner.co.il \
--to=efraim@flashner.co.il \
--cc=27596@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.