From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QUdh4-0007nW-V0 for garchives@archives.gentoo.org; Thu, 09 Jun 2011 11:46:35 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F19C91C048; Thu, 9 Jun 2011 11:46:12 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id BA7DD1C069 for ; Thu, 9 Jun 2011 11:46:12 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4862E1B4043 for ; Thu, 9 Jun 2011 11:46:12 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 9663A8004F for ; Thu, 9 Jun 2011 11:46:11 +0000 (UTC) From: "Petteri Räty" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Petteri Räty" Message-ID: Subject: [gentoo-commits] proj/libbash:master commit in: utils/ X-VCS-Repository: proj/libbash X-VCS-Files: utils/metadata_diff.sh X-VCS-Directories: utils/ X-VCS-Committer: betelgeuse X-VCS-Committer-Name: Petteri Räty X-VCS-Revision: d7af7504cc91ab7cd5ca37abbe3fc3f5d7556acd Date: Thu, 9 Jun 2011 11:46:11 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 089f866a3ceef62ceaca86f1fa9f3c9c commit: d7af7504cc91ab7cd5ca37abbe3fc3f5d7556acd Author: Mu Qiao gentoo org> AuthorDate: Wed Jun 8 10:44:15 2011 +0000 Commit: Petteri R=C3=A4ty gentoo org> CommitDate: Thu Jun 9 11:41:23 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/libbash.git;a= =3Dcommit;h=3Dd7af7504 Utility: fix error counting diff may return value that is greater than 1. Now this is fixed. --- utils/metadata_diff.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/utils/metadata_diff.sh b/utils/metadata_diff.sh index 46fd323..7a21855 100755 --- a/utils/metadata_diff.sh +++ b/utils/metadata_diff.sh @@ -27,7 +27,7 @@ do do filename=3D${path##*\/} diff -u $cache_dir/$file $outputdir/$category/$filename > $o= utputdir/$category/$filename.diff 2>>$outputdir/error_output - error_count+=3D$? + error_count+=3D$(($? !=3D 0)) total_num+=3D1 done fi