sys-apps/rng-tools: handle if redirecting output to a file fails in ebuild
authorGokturk Yuksek <gokturk@binghamton.edu>
Tue, 22 Sep 2015 10:21:08 +0000 (06:21 -0400)
committerGokturk Yuksek <gokturk@binghamton.edu>
Thu, 1 Oct 2015 08:09:43 +0000 (04:09 -0400)
Use '|| die' to handle if redirecting output to a file fails.

Package-Manager: portage-2.2.20.1

sys-apps/rng-tools/rng-tools-5-r2.ebuild

index f32feff5300c82d42bfc6b1e3b97943337c2ad45..61e60b00cd633f332966e2a1d506ca134fa5c10d 100644 (file)
@@ -21,7 +21,7 @@ RDEPEND="${DEPEND}
        selinux? ( sec-policy/selinux-rngd )"
 
 src_prepare() {
-       echo 'bin_PROGRAMS = randstat' >> contrib/Makefile.am
+       echo 'bin_PROGRAMS = randstat' >> contrib/Makefile.am || die
        epatch "${FILESDIR}"/test-for-argp.patch
        epatch "${FILESDIR}"/${P}-fix-textrels-on-PIC-x86.patch #469962
        epatch "${FILESDIR}"/${P}-man-fill-watermark.patch #555094