Explorar o código

Patch psi onely when patches available

Sergey Ilinykh %!s(int64=5) %!d(string=hai) anos
pai
achega
347bf9e80d
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      net-im/psi/psi-9999.ebuild

+ 2 - 1
net-im/psi/psi-9999.ebuild

@@ -125,7 +125,8 @@ src_prepare() {
 			cp -a "${WORKDIR}/resources/iconsets" "${S}" || die "failed to copy additional iconsets"
 		fi
 
-		eapply "${WORKDIR}/psi-plus/patches"/*.diff
+		patches=$(find "${WORKDIR}/psi-plus/patches" -maxdepth 1 -name '*.diff')
+		[ -n "$patches" ] && eapply "${WORKDIR}/psi-plus/patches"/*.diff
 
 		vergen="${WORKDIR}/psi-plus/admin/psi-plus-nightly-version"
 		features="$(use webkit && echo '--webkit') $(use webengine && echo '--webengine')"