commit:     824b9947a4bdf2049961216c81e089c086ea2652
Author:     Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 12 19:21:19 2016 +0000
Commit:     Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
CommitDate: Sun Jun 12 19:21:19 2016 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=824b9947

sys-cluster/lustre: Fix case when patches are empty

Package-Manager: portage-2.3.0_rc1

 sys-cluster/lustre/lustre-2.8.0.ebuild | 4 +++-
 sys-cluster/lustre/lustre-9999.ebuild  | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/sys-cluster/lustre/lustre-2.8.0.ebuild 
b/sys-cluster/lustre/lustre-2.8.0.ebuild
index 59c8e55..fccf13a 100644
--- a/sys-cluster/lustre/lustre-2.8.0.ebuild
+++ b/sys-cluster/lustre/lustre-2.8.0.ebuild
@@ -50,7 +50,9 @@ pkg_setup() {
 }
 
 src_prepare() {
-       epatch ${PATCHES[@]}
+       if [ -z ${PATCHES[@]} ]; then
+               epatch ${PATCHES[@]}
+       fi
        # replace upstream autogen.sh by our src_prepare()
        local DIRS="libcfs lnet lustre snmp"
        local ACLOCAL_FLAGS

diff --git a/sys-cluster/lustre/lustre-9999.ebuild 
b/sys-cluster/lustre/lustre-9999.ebuild
index 59c8e55..fccf13a 100644
--- a/sys-cluster/lustre/lustre-9999.ebuild
+++ b/sys-cluster/lustre/lustre-9999.ebuild
@@ -50,7 +50,9 @@ pkg_setup() {
 }
 
 src_prepare() {
-       epatch ${PATCHES[@]}
+       if [ -z ${PATCHES[@]} ]; then
+               epatch ${PATCHES[@]}
+       fi
        # replace upstream autogen.sh by our src_prepare()
        local DIRS="libcfs lnet lustre snmp"
        local ACLOCAL_FLAGS

Reply via email to