From 005f5b1082663214f618ac9db4910008a70a2104 Mon Sep 17 00:00:00 2001 From: Davide Madrisan Date: Tue, 17 Jan 2012 22:08:56 +0100 Subject: [PATCH] pck-update: ignore comments in test n.5 for make too 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 72ce928..6c25a03 100644 --- a/plugins/pck-update.in +++ b/plugins/pck-update.in @@ -712,6 +712,8 @@ use rpm macros if possible:"" \`$token' --> \`$rpm_macro_make'" ;; sed -n '/%install/,/%changelog/p' $specfile | \ while read -a tokens; do for token in ${tokens[*]}; do + # ignore comments + [[ "${tokens[0]}" =~ ^\# ]] && continue case "$token" in make) [[ "$rpm_macro_make" ]] && notify.warning $"\