summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominique Dumont <dod@debian.org>2021-03-20 18:51:52 +0100
committerDominique Dumont <dod@debian.org>2021-03-21 18:54:41 +0100
commit3544e320201fc105bbe8eb497ad2a39ce446c344 (patch)
treec47aea777b5a1dd52ec3bc9ee2e0e00cacd488b8
parenta2e1ad5c66453209e33124111a911e95d330f2f6 (diff)
trigger change notif when fixing lintian tags
otherwise, cme does not show changed value
-rw-r--r--lib/Config/Model/Dpkg/Lintian/Overrides.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Config/Model/Dpkg/Lintian/Overrides.pm b/lib/Config/Model/Dpkg/Lintian/Overrides.pm
index 01915f0e..ad9cfa62 100644
--- a/lib/Config/Model/Dpkg/Lintian/Overrides.pm
+++ b/lib/Config/Model/Dpkg/Lintian/Overrides.pm
@@ -81,6 +81,11 @@ around _check_value => sub ( $orig, $self, %args ) {
push @$warn, "Obsolete $tag tag. New tag is $new";
if ($apply_fix) {
$line =~ s/(:\s*)($tag)/$1$new/;
+ $self->notify_change(
+ old => $tag,
+ new => $new,
+ note => 'update obsolete lintian tag'
+ );
} else {
$self->{nb_of_fixes}++;
}