瀏覽代碼

Patch psi onely when patches available

Sergey Ilinykh 5 年之前
父節點
當前提交
347bf9e80d
共有 1 個文件被更改,包括 2 次插入1 次删除
  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')"