With -v, runvar-perlop would unconditionally print a message about the
changed variable. Instead, only call runvar_set if the value is to
change.
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
my ($job, $name, $varrow) = @_;
my $oldval = $varrow->{val};
my $newval = perlop_value($job, $name, $op, $oldval);
- runvar_set($job, $name, $newval, " (modified from \`$oldval')");
+ runvar_set($job, $name, $newval, " (modified from \`$oldval')")
+ if $newval ne $oldval;
}, 'IGNORE');
}