Browse Source

Patch psi onely when patches available

Sergey Ilinykh 5 years ago
parent
commit
347bf9e80d
1 changed files with 2 additions and 1 deletions
  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')"