commit:     719f542d83735ff6ee179ec5a296920464dad2ac
Author:     Göktürk Yüksek <gokturk <AT> gentoo <DOT> org>
AuthorDate: Sun May 22 00:54:27 2016 +0000
Commit:     Ian Delaney <idella4 <AT> gentoo <DOT> org>
CommitDate: Mon May 23 01:45:26 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=719f542d

games-rpg/runescape-launcher: add missing die statements

Package-Manager: portage-2.2.28
Closes: https://github.com/gentoo/gentoo/pull/1514

Signed-off-by: Ian Delaney <idella4 <AT> gentoo.org>

 games-rpg/runescape-launcher/runescape-launcher-2.2.2.ebuild | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/games-rpg/runescape-launcher/runescape-launcher-2.2.2.ebuild 
b/games-rpg/runescape-launcher/runescape-launcher-2.2.2.ebuild
index 10267d6..1ba7f73 100644
--- a/games-rpg/runescape-launcher/runescape-launcher-2.2.2.ebuild
+++ b/games-rpg/runescape-launcher/runescape-launcher-2.2.2.ebuild
@@ -35,13 +35,13 @@ RDEPEND="
 
 src_prepare() {
        # Fix path in launcher script
-       sed -i "s:/usr/share/games/$PN:/opt/$PN:" usr/bin/$PN
+       sed -i "s:/usr/share/games/$PN:/opt/$PN:" usr/bin/$PN || die
 
        # Add missing trailing semicolon to .desktop MimeType entry
-       sed -i '/MimeType=/{/;$/!{s/$/;/}}' usr/share/applications/${PN}.desktop
+       sed -i '/MimeType=/{/;$/!{s/$/;/}}' 
usr/share/applications/${PN}.desktop || die
 
        # Fix path to launcher script
-       sed -i "s:/usr/bin/$PN:/opt/bin/$PN:" 
usr/share/applications/${PN}.desktop
+       sed -i "s:/usr/bin/$PN:/opt/bin/$PN:" 
usr/share/applications/${PN}.desktop || die
 
        xdg_src_prepare
 

Reply via email to