Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/elfix:elfix-0.4.x commit in: scripts/
Date: Thu, 29 Dec 2011 00:57:30
Message-Id: 2e53a653ff63fc9e4acd82e9581915c811f6e562.blueness@gentoo
1 commit: 2e53a653ff63fc9e4acd82e9581915c811f6e562
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 26 20:11:06 2011 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 29 00:57:04 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=2e53a653
7
8 scripts/revdep-pax: die elegantly if binary/library/soname is not found
9
10 ---
11 scripts/revdep-pax | 17 +++++++++++++----
12 1 files changed, 13 insertions(+), 4 deletions(-)
13
14 diff --git a/scripts/revdep-pax b/scripts/revdep-pax
15 index 1fe28ab..3d8e213 100755
16 --- a/scripts/revdep-pax
17 +++ b/scripts/revdep-pax
18 @@ -400,12 +400,21 @@ def main():
19 elif do_reverse:
20 run_reverse(verbose, executable_only)
21 elif binary != None:
22 - run_binary(binary, verbose, mark)
23 + try:
24 + run_binary(binary, verbose, mark)
25 + except:
26 + print 'Please check that %s exists!' % binary
27 elif soname != None:
28 - run_soname(soname, verbose, True, mark, executable_only)
29 + try:
30 + run_soname(soname, verbose, True, mark, executable_only)
31 + except:
32 + print 'Please check that %s exists!' % soname
33 elif library != None:
34 - library = os.path.realpath(library)
35 - run_soname(library, verbose, False, mark, executable_only)
36 + try:
37 + library = os.path.realpath(library)
38 + run_soname(library, verbose, False, mark, executable_only)
39 + except:
40 + print 'Please check that %s exists!' % library
41
42 if __name__ == '__main__':
43 main()