- We have to add additional ".." to the path we want to check. $PWD is
already $srcdir. This bug was the only reason that it did not trigger
futher bugs in the "true" case.
- If we don't find an APKBUILD for the kernel flavor, error out
- We are in a sub-shell, we do not have to protect $pkgname
- We have to add "return 0", otherwise in the positive case where the
last check succeeds, it sets the sub-shell return value to 1, which
then triggers the failure path.
---
testing/drbd9-grsec/APKBUILD | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/testing/drbd9-grsec/APKBUILD b/testing/drbd9-grsec/APKBUILD
index b9922c0..258163c 100644
--- a/testing/drbd9-grsec/APKBUILD+++ b/testing/drbd9-grsec/APKBUILD
@@ -33,14 +33,15 @@ _builddir=$srcdir/$_usname-$_usver
prepare() {
local i
# verify the kernel version
- (if [ -f ../../main/linux-${_flavor}/APKBUILD ]; then- _name=$pkgname- . ../../main/linux-${_flavor}/APKBUILD- pkgname=$_name+ (if [ -f ../../../main/linux-${_flavor}/APKBUILD ]; then+ . ../../../main/linux-${_flavor}/APKBUILD