diff options
author | Stanislav Ochotnicky <sochotnicky@gentoo.org> | 2011-06-18 10:08:55 +0000 |
---|---|---|
committer | Stanislav Ochotnicky <sochotnicky@gentoo.org> | 2011-06-18 10:08:55 +0000 |
commit | 944a17714ee30ba5e04ac3eee98e040833194c41 (patch) | |
tree | 1c974c5402409dfbcb17ff237f50a9a386128838 /dev-vcs/fromcvs/fromcvs-0_pre132-r1.ebuild | |
parent | Version bump for dev channel release (fails tests). Remove old. (diff) | |
download | gentoo-2-944a17714ee30ba5e04ac3eee98e040833194c41.tar.gz gentoo-2-944a17714ee30ba5e04ac3eee98e040833194c41.tar.bz2 gentoo-2-944a17714ee30ba5e04ac3eee98e040833194c41.zip |
Added "|| die" to few commands to prevent possible problems
(Portage version: 2.1.9.42/cvs/Linux x86_64)
Diffstat (limited to 'dev-vcs/fromcvs/fromcvs-0_pre132-r1.ebuild')
-rw-r--r-- | dev-vcs/fromcvs/fromcvs-0_pre132-r1.ebuild | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/dev-vcs/fromcvs/fromcvs-0_pre132-r1.ebuild b/dev-vcs/fromcvs/fromcvs-0_pre132-r1.ebuild index 5cdf590bf867..196335a6b1a0 100644 --- a/dev-vcs/fromcvs/fromcvs-0_pre132-r1.ebuild +++ b/dev-vcs/fromcvs/fromcvs-0_pre132-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-vcs/fromcvs/fromcvs-0_pre132-r1.ebuild,v 1.1 2011/06/18 09:51:59 sochotnicky Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-vcs/fromcvs/fromcvs-0_pre132-r1.ebuild,v 1.2 2011/06/18 10:08:55 sochotnicky Exp $ EAPI=4 @@ -37,15 +37,15 @@ ruby_add_rdepend "dev-ruby/rcsparse src_prepare() { # prepare scripts that will go into bin for script in togit.rb tohg.rb todb.rb;do - sed -i '1 i #!/usr/bin/ruby' ${script} - mv ${script} ${script%.rb} + sed -i '1 i #!/usr/bin/ruby' ${script} || die + mv ${script} ${script%.rb} || die done # this is a workaround because combination of ruby-ng and mercurial is # not working correctly for unpacking for rubyv in ${USE_RUBY} all;do - mkdir "${WORKDIR}/${rubyv}" - cp -prl "${S}" "${WORKDIR}/${rubyv}/${RUBY_S}" + mkdir "${WORKDIR}/${rubyv}" || die + cp -prl "${S}" "${WORKDIR}/${rubyv}/${RUBY_S}" || die done } |