diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2018-01-10 17:06:28 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-01-10 17:06:28 +0000 |
commit | 81a3c7ddb2c20e3f78aee38fde48f66381edb0b9 (patch) | |
tree | 05a96890ce220bd044f801e88661d7fbb171b2bc | |
parent | 985e3f17e968bee2003c4ee9debef5f4ef987f3e (diff) | |
download | aports-81a3c7ddb2c20e3f78aee38fde48f66381edb0b9.tar.bz2 aports-81a3c7ddb2c20e3f78aee38fde48f66381edb0b9.tar.xz |
testing/aws-ena-driver-*: dont abort if APKBUILD is in wrong cwd
-rw-r--r-- | testing/aws-ena-driver-hardened/APKBUILD | 10 | ||||
-rw-r--r-- | testing/aws-ena-driver-vanilla/APKBUILD | 4 |
2 files changed, 9 insertions, 5 deletions
diff --git a/testing/aws-ena-driver-hardened/APKBUILD b/testing/aws-ena-driver-hardened/APKBUILD index f20eaa69ed..904d0222fd 100644 --- a/testing/aws-ena-driver-hardened/APKBUILD +++ b/testing/aws-ena-driver-hardened/APKBUILD @@ -7,10 +7,12 @@ _pkgrel=0 # This APK is co-versioned with the kernel instead of using the upstream # version, so pull in the kernel pkg version as _kernver and kernel pkg rel as # _kernrel -eval $(sed -n \ - -e '/^pkgver/s/^pkg/_kern/p' \ - -e '/^pkgrel/s/^pkg/_kern/p' \ - ../../main/linux-${_flavor}/APKBUILD) +if [ -f ../../linux-${_flavor}/APKBUILD ]; then + eval $(sed -n \ + -e '/^pkgver/s/^pkg/_kern/p' \ + -e '/^pkgrel/s/^pkg/_kern/p' \ + ../../main/linux-${_flavor}/APKBUILD) +fi # Vanilla kernels don't contain a flavor or pkgrel in the ABI if [ "${_flavor}" = "vanilla" ]; then diff --git a/testing/aws-ena-driver-vanilla/APKBUILD b/testing/aws-ena-driver-vanilla/APKBUILD index b3572051d7..72798953a4 100644 --- a/testing/aws-ena-driver-vanilla/APKBUILD +++ b/testing/aws-ena-driver-vanilla/APKBUILD @@ -2,4 +2,6 @@ FLAVOR="vanilla" -source ../aws-ena-driver-hardened/APKBUILD +if [ -f ../aws-ena-driver-hardened/APKBUILD ]; then + source ../aws-ena-driver-hardened/APKBUILD +fi |