pck-update: ignore comments in test n.5 for make too
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
parent
fcb14501ba
commit
005f5b1082
@ -712,6 +712,8 @@ use rpm macros if possible:"" \`$token' --> \`$rpm_macro_make'" ;;
|
|||||||
sed -n '/%install/,/%changelog/p' $specfile | \
|
sed -n '/%install/,/%changelog/p' $specfile | \
|
||||||
while read -a tokens; do
|
while read -a tokens; do
|
||||||
for token in ${tokens[*]}; do
|
for token in ${tokens[*]}; do
|
||||||
|
# ignore comments
|
||||||
|
[[ "${tokens[0]}" =~ ^\# ]] && continue
|
||||||
case "$token" in
|
case "$token" in
|
||||||
make)
|
make)
|
||||||
[[ "$rpm_macro_make" ]] && notify.warning $"\
|
[[ "$rpm_macro_make" ]] && notify.warning $"\
|
||||||
|
Loading…
Reference in New Issue
Block a user