aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2011-12-26 15:11:06 -0500
committerAnthony G. Basile <blueness@gentoo.org>2011-12-26 15:11:06 -0500
commit44e1b3aa6cbb94991cb21e1340dfcb1c439471d1 (patch)
tree05f530829ca5a1551cbe93e9064c46ecd7134c9e
parentChangeLog: forgot to add an entry (diff)
downloadelfix-44e1b3aa6cbb94991cb21e1340dfcb1c439471d1.tar.gz
elfix-44e1b3aa6cbb94991cb21e1340dfcb1c439471d1.tar.bz2
elfix-44e1b3aa6cbb94991cb21e1340dfcb1c439471d1.zip
scripts/revdep-pax: die elegantly if binary/library/soname is not found
-rwxr-xr-xscripts/revdep-pax17
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 != None:
- run_binary(binary, verbose, mark)
+ try:
+ run_binary(binary, verbose, mark)
+ except:
+ print 'Please check that %s exists!' % binary
elif soname != 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 != None:
- library = os.path.realpath(library)
- run_soname(library, verbose, False, mark, executable_only)
+ try:
+ library = os.path.realpath(library)
+ run_soname(library, verbose, False, mark, executable_only)
+ except:
+ print 'Please check that %s exists!' % library
if __name__ == '__main__':
main()