瀏覽代碼

Dpkg::Shlibs::SymbolFile: add missing explanation

Raphael Hertzog 17 年之前
父節點
當前提交
ffc5049d6a
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      scripts/Dpkg/Shlibs/SymbolFile.pm

+ 2 - 2
scripts/Dpkg/Shlibs/SymbolFile.pm

@@ -320,8 +320,8 @@ sub merge_symbols {
 	    next if not $sym->arch_is_concerned($self->{arch});
 	    next if not $sym->arch_is_concerned($self->{arch});
 
 
 	    if ($sym->{deprecated}) {
 	    if ($sym->{deprecated}) {
-		# Bump deprecated if the symbol is optional.
-                # XXX: Why?
+		# Bump deprecated if the symbol is optional so that it
+                # keeps reappering in the diff while it's missing
 		$sym->{deprecated} = $minver if $sym->is_optional();
 		$sym->{deprecated} = $minver if $sym->is_optional();
 	    } elsif (vercmp($minver, $sym->{minver}) > 0) {
 	    } elsif (vercmp($minver, $sym->{minver}) > 0) {
 		$sym->{deprecated} = $minver;
 		$sym->{deprecated} = $minver;