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 1Rg4JG-0006By-CX for garchives@archives.gentoo.org; Thu, 29 Dec 2011 00:57:30 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D9D8621C06D; Thu, 29 Dec 2011 00:57:22 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id A4A6321C06D for ; Thu, 29 Dec 2011 00:57:22 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2AE2C1B402C for ; Thu, 29 Dec 2011 00:57:22 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 9741E80043 for ; Thu, 29 Dec 2011 00:57:21 +0000 (UTC) From: "Anthony G. Basile" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Anthony G. Basile" Message-ID: <2e53a653ff63fc9e4acd82e9581915c811f6e562.blueness@gentoo> Subject: [gentoo-commits] proj/elfix:elfix-0.4.x commit in: scripts/ X-VCS-Repository: proj/elfix X-VCS-Files: scripts/revdep-pax X-VCS-Directories: scripts/ X-VCS-Committer: blueness X-VCS-Committer-Name: Anthony G. Basile X-VCS-Revision: 2e53a653ff63fc9e4acd82e9581915c811f6e562 Date: Thu, 29 Dec 2011 00:57:21 +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: 8a48061e-29ec-4251-9d81-f336d23fb854 X-Archives-Hash: 03b8685bb167855ceff8e0a3a1ea6417 commit: 2e53a653ff63fc9e4acd82e9581915c811f6e562 Author: Anthony G. Basile gentoo org> AuthorDate: Mon Dec 26 20:11:06 2011 +0000 Commit: Anthony G. Basile gentoo org> CommitDate: Thu Dec 29 00:57:04 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/elfix.git;a=3D= commit;h=3D2e53a653 scripts/revdep-pax: die elegantly if binary/library/soname is not found --- scripts/revdep-pax | 17 +++++++++++++---- 1 files changed, 13 insertions(+), 4 deletions(-) diff --git a/scripts/revdep-pax b/scripts/revdep-pax index 1fe28ab..3d8e213 100755 --- a/scripts/revdep-pax +++ b/scripts/revdep-pax @@ -400,12 +400,21 @@ def main(): elif do_reverse: run_reverse(verbose, executable_only) elif binary !=3D None: - run_binary(binary, verbose, mark) + try: + run_binary(binary, verbose, mark) + except: + print 'Please check that %s exists!' % binary elif soname !=3D None: - run_soname(soname, verbose, True, mark, executable_only) + try: + run_soname(soname, verbose, True, mark, executable_only) + except: + print 'Please check that %s exists!' % soname elif library !=3D None: - library =3D os.path.realpath(library) - run_soname(library, verbose, False, mark, executable_only) + try: + library =3D os.path.realpath(library) + run_soname(library, verbose, False, mark, executable_only) + except: + print 'Please check that %s exists!' % library =20 if __name__ =3D=3D '__main__': main()