app-admin/keepass: avoid dying when building with <dev-lang/mono-4
authorMichael Palimaka <kensington@gentoo.org>
Mon, 18 Jan 2016 11:12:49 +0000 (22:12 +1100)
committerMichael Palimaka <kensington@gentoo.org>
Mon, 18 Jan 2016 11:13:46 +0000 (22:13 +1100)
Package-Manager: portage-2.2.26

app-admin/keepass/keepass-2.31.ebuild

index cc2c785319facfbc29aa3fe7e657f1e920ec64eb..cac738ec62ce4583488e3e19c1c231eaf35e2a77 100644 (file)
@@ -34,9 +34,10 @@ src_prepare() {
        # we prefer to have it in /usr/share/KeePass
        epatch "${FILESDIR}/${PN}-2.20-xsl-path-detection.patch"
        # bug # 558094
-       has_version ">=dev-lang/mono-4" && \
-               sed -i -e 's! ToolsVersion="3.5"!!g' Translation/TrlUtil/TrlUtil.csproj || die && \
+       if has_version ">=dev-lang/mono-4" ; then
+               sed -i -e 's! ToolsVersion="3.5"!!g' Translation/TrlUtil/TrlUtil.csproj || die
                sed -i -e 's/Format Version 10.00/Format Version 11.00/' KeePass.sln || die
+       fi
 }
 
 src_compile() {