Browse Source

Patch psi onely when patches available

Sergey Ilinykh 5 năm trước cách đây
mục cha
commit
347bf9e80d
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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')"