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 1RfH7K-00069v-0u for garchives@archives.gentoo.org; Mon, 26 Dec 2011 20:25:54 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 36C3621C09A; Mon, 26 Dec 2011 20:25:45 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 00DCE21C09A for ; Mon, 26 Dec 2011 20:25:44 +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 6E4AB1B4024 for ; Mon, 26 Dec 2011 20:25:44 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id B32AB80043 for ; Mon, 26 Dec 2011 20:25:43 +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: <44e1b3aa6cbb94991cb21e1340dfcb1c439471d1.blueness@gentoo> Subject: [gentoo-commits] proj/elfix:master 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: 44e1b3aa6cbb94991cb21e1340dfcb1c439471d1 Date: Mon, 26 Dec 2011 20:25:43 +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: 4ca43daf-3848-4363-9e52-e67d48bf50c1 X-Archives-Hash: 85901ee60e23d8a729cdbf8f3d09c6e0 commit: 44e1b3aa6cbb94991cb21e1340dfcb1c439471d1 Author: Anthony G. Basile gentoo org> AuthorDate: Mon Dec 26 20:11:06 2011 +0000 Commit: Anthony G. Basile gentoo org> CommitDate: Mon Dec 26 20:11:06 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/elfix.git;a=3D= commit;h=3D44e1b3aa 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()