From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59198) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1do8Bb-0004lE-Gv for guix-patches@gnu.org; Sat, 02 Sep 2017 09:10:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1do8BW-0005bO-Qf for guix-patches@gnu.org; Sat, 02 Sep 2017 09:10:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:33160) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1do8BW-0005bG-N2 for guix-patches@gnu.org; Sat, 02 Sep 2017 09:10:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1do8BW-0002Oi-9T for guix-patches@gnu.org; Sat, 02 Sep 2017 09:10:02 -0400 Subject: [bug#28330] [PATCH 1/2] lint: Check file names of origin patches. References: <20170902130550.28061-1-mbakke@fastmail.com> In-Reply-To: <20170902130550.28061-1-mbakke@fastmail.com> Resent-Message-ID: From: Marius Bakke Date: Sat, 2 Sep 2017 15:09:46 +0200 Message-Id: <20170902130947.28372-1-mbakke@fastmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 28330@debbugs.gnu.org * guix/scripts/lint.scm (check-patch-file-names): Add case for when PATCH is an . --- guix/scripts/lint.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/guix/scripts/lint.scm b/guix/scripts/lint.scm index aceafc674..855b6262f 100644 --- a/guix/scripts/lint.scm +++ b/guix/scripts/lint.scm @@ -561,7 +561,13 @@ patch could not be found." (and=> (string-contains (basename patch) (package-name package)) zero?)) - (_ #f)) ;must be an or something like that. + ((? origin? patch) + (if (string? (origin-file-name patch)) + (and=> (string-contains (origin-file-name patch) + (package-name package)) + zero?) + #f)) + (_ #f)) (or (and=> (package-source package) origin-patches) '())) (emit-warning -- 2.14.1