From fcb14501ba934c40e78de0157b3b04e93fab341f Mon Sep 17 00:00:00 2001 From: Davide Madrisan Date: Tue, 17 Jan 2012 22:05:55 +0100 Subject: [PATCH] pck-update: ignore comments in test n.5 Signed-off-by: Davide Madrisan --- plugins/pck-update.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/pck-update.in b/plugins/pck-update.in index 177341e..72ce928 100644 --- a/plugins/pck-update.in +++ b/plugins/pck-update.in @@ -695,6 +695,8 @@ missing at least one \`%defattr' directive" local token tokens sed -n '/%build/,/%install/p' $specfile | \ while read -a tokens; do + # ignore comments + [[ "${tokens[0]}" =~ ^\# ]] && continue for token in ${tokens[*]}; do case "$token" in configure|./configure)