[arch-projects] [mkinitcpio] [PATCH 1/1] fix variable name and correctly report broken dynamic linking
Christian Hesse
list at eworm.de
Sun Nov 20 00:07:11 UTC 2016
From: Christian Hesse <mail at eworm.de>
With broken dynamic linking an error was reported, but mkinitcpio still
exited with:
==> Image generation successful
and return code 0. This fixes the variable name, which makes mkinitcpio
exit with the correct warning:
==> WARNING: errors were encountered during the build. The image may not
be complete.
and return code 1, indicating an error.
Signed-off-by: Christian Hesse <mail at eworm.de>
---
functions | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/functions b/functions
index 7785347..14235b2 100644
--- a/functions
+++ b/functions
@@ -590,7 +590,7 @@ add_binary() {
sodep=${BASH_REMATCH[1]}
elif [[ $line = *'not found' ]]; then
error "binary dependency \`%s' not found for \`%s'" "${line%% *}" "$1"
- (( ++builderrors ))
+ (( ++_builderrors ))
continue
fi
--
2.10.2
More information about the arch-projects
mailing list