From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-839479-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id 96EC413888F
	for <garchives@archives.gentoo.org>; Sat, 10 Oct 2015 22:19:24 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 9B2FB21C026;
	Sat, 10 Oct 2015 22:19:21 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 4315A21C026
	for <gentoo-commits@lists.gentoo.org>; Sat, 10 Oct 2015 22:19:21 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 10FF034067D
	for <gentoo-commits@lists.gentoo.org>; Sat, 10 Oct 2015 22:19:20 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 18342B9
	for <gentoo-commits@lists.gentoo.org>; Sat, 10 Oct 2015 22:19:18 +0000 (UTC)
From: "Ulrich Müller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" <ulm@gentoo.org>
Message-ID: <1444515435.c77e06ffac4dcc221b9cf8b6219d945ec0ae6ffa.ulm@gentoo>
Subject: [gentoo-commits] proj/qa-scripts:master commit in: /
X-VCS-Repository: proj/qa-scripts
X-VCS-Files: find-binary-files.sh
X-VCS-Directories: /
X-VCS-Committer: ulm
X-VCS-Committer-Name: Ulrich Müller
X-VCS-Revision: c77e06ffac4dcc221b9cf8b6219d945ec0ae6ffa
X-VCS-Branch: master
Date: Sat, 10 Oct 2015 22:19:18 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Archives-Salt: e59d5452-7938-4ad6-8d2d-f70117e99849
X-Archives-Hash: 5bb933ff98507bf12954bdb0564c2362

commit:     c77e06ffac4dcc221b9cf8b6219d945ec0ae6ffa
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 10 22:17:15 2015 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Oct 10 22:17:15 2015 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=c77e06ff

find-binary-files.sh: More false positives for GNU Info files.

 find-binary-files.sh | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/find-binary-files.sh b/find-binary-files.sh
index ccff2d6..98346de 100755
--- a/find-binary-files.sh
+++ b/find-binary-files.sh
@@ -1,5 +1,5 @@
 #!/bin/bash
-# Copyright 2014 Gentoo Foundation
+# Copyright 2014-2015 Gentoo Foundation
 # Distributed under the terms of the GNU GPL version 2 or later
 # Author: Ulrich Müller <ulm@gentoo.org>
 
@@ -21,9 +21,10 @@ find . \( -path ./distfiles -o -path ./local -o -path ./metadata \
             # GNU Info files (or patches to them) can contain the following
             # control characters that produce false positives:
             # - 0x1f, followed by LF or FF
-            # - 0x7f (DEL), preceded by "Node:" in the same line
+            # - 0x7f (DEL), preceded by "Node:" or "Ref:" in the same line
             # Filter such characters and reiterate
-            line=$(sed -e 's/\x1f\f\?$//;/Node:/s/\x7f//' "${path}" | file -i -)
+            line=$(sed -e 's/\x1f\f\?$//;/\(Node\|Ref\):/s/\x7f//' "${path}" \
+			| file -i -)
             type=${line##*:*( )}
             ;;
     esac