public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Anthony G. Basile" <blueness@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/elfix:elfix-0.4.x commit in: scripts/
Date: Thu, 29 Dec 2011 00:57:21 +0000 (UTC)	[thread overview]
Message-ID: <2e53a653ff63fc9e4acd82e9581915c811f6e562.blueness@gentoo> (raw)

commit:     2e53a653ff63fc9e4acd82e9581915c811f6e562
Author:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 26 20:11:06 2011 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Thu Dec 29 00:57:04 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=2e53a653

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 != 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()



             reply	other threads:[~2011-12-29  0:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-29  0:57 Anthony G. Basile [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-12-29  1:00 [gentoo-commits] proj/elfix:elfix-0.4.x commit in: scripts/ Anthony G. Basile
2011-12-29  1:00 Anthony G. Basile
2011-12-29  1:00 Anthony G. Basile
2011-12-29  1:00 Anthony G. Basile
2011-12-29  1:00 Anthony G. Basile
2011-12-04 21:50 Anthony G. Basile

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2e53a653ff63fc9e4acd82e9581915c811f6e562.blueness@gentoo \
    --to=blueness@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox