[Qa-jenkins-scm] [jenkins.debian.net] 02/02: reproducible_lede: add newline to $CONFIG

Holger Levsen holger at layer-acht.org
Fri Nov 3 02:14:26 UTC 2017


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit 65d29c4ea76338359822ab575b29b5332730d685
Author: Alexander Couzens <lynxis at fe80.eu>
Date:   Fri Nov 3 03:05:03 2017 +0100

    reproducible_lede: add newline to $CONFIG
    
    The missing newline makes the first line of the static config
    invalid. In particular CONFIG_ALL=y got invalidated.
    Additional check for empty lines and remove them.
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 bin/reproducible_lede_common.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/reproducible_lede_common.sh b/bin/reproducible_lede_common.sh
index 88ce45a..e71494c 100644
--- a/bin/reproducible_lede_common.sh
+++ b/bin/reproducible_lede_common.sh
@@ -230,7 +230,7 @@ openwrt_apply_variations() {
 openwrt_config() {
 	CONFIG=$1
 
-	printf "$CONFIG" > .config
+	printf "$CONFIG\n" | grep '^[^ ]' > .config
 	printf "CONFIG_ALL=y\n" >> .config
 	printf "CONFIG_AUTOREMOVE=y\n" >> .config
 	printf "CONFIG_CLEAN_IPKG=y\n" >> .config

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list