The following commit has been merged in the master branch:
commit c203cd6efc670053a894a9ac86d3e6604ed2526d
Author: Raphael Hertzog <[email protected]>
Date:   Sat Feb 28 08:49:54 2009 +0100

    update-alternatives: avoid logging useless status change

diff --git a/ChangeLog b/ChangeLog
index e0686e2..70e21f8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2009-02-27  Raphael Hertzog  <[email protected]>
 
+       * scripts/update-alternatives.pl: Avoid logging too many
+       useless messages about status change.
+
+2009-02-27  Raphael Hertzog  <[email protected]>
+
        * scripts/Dpkg/Shlibs/SymbolFile.pm (save, dump): Add new
        parameter asking that #PACKAGE# be replaced on the fly.
        * scripts/dpkg-gensymbols.pl: Replace #PACKAGE# while outputting
diff --git a/scripts/update-alternatives.pl b/scripts/update-alternatives.pl
index cd9bbab..4dcb3f4 100755
--- a/scripts/update-alternatives.pl
+++ b/scripts/update-alternatives.pl
@@ -693,7 +693,8 @@ sub set_status {
     if (!defined($self->status()) or $status ne $self->status()) {
         $self->{modified} = 1;
     }
-    main::log_msg("status of link group " . $self->name() . " set to $status");
+    main::log_msg("status of link group " . $self->name() . " set to $status")
+        if defined($self->status()) and $status ne $self->status();
     $self->{status} = $status;
 }
 sub set_link {

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to