]> git.donarmstrong.com Git - debbugs.git/commitdiff
add missing if $DEBUG to Debbugs::Status::bug_archiveable
authorDon Armstrong <don@donarmstrong.com>
Tue, 12 Feb 2008 08:24:48 +0000 (00:24 -0800)
committerDon Armstrong <don@donarmstrong.com>
Tue, 12 Feb 2008 08:24:48 +0000 (00:24 -0800)
Debbugs/Status.pm

index 360cf38cfe2a3e1ac01dcc12af885408991449c0..580a62aa9e922502688a2db7e268c3023bf19289 100644 (file)
@@ -624,7 +624,7 @@ sub bug_archiveable{
      # Bugs can be archived if they are
      # 1. Closed
      if (not defined $status->{done} or not length $status->{done}) {
-         print STDERR "Cannot archive $param{bug} because it is not done\n";
+         print STDERR "Cannot archive $param{bug} because it is not done\n" if $DEBUG;
          return $cannot_archive
      }
      # If we just are checking if the bug can be archived, we'll not even bother