From d059e46de9b45b8881b61fc41ff6106b69c19cac Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Thu, 6 Aug 2009 08:58:43 -0700 Subject: [PATCH] don't alter archived bugs in control --- Debbugs/Control.pm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Debbugs/Control.pm b/Debbugs/Control.pm index a36321a4..c80a3ce0 100644 --- a/Debbugs/Control.pm +++ b/Debbugs/Control.pm @@ -2685,6 +2685,13 @@ sub __begin_control { if (not @data) { die "Unable to read any bugs successfully."; } + if (not $param{archived}) { + for my $data (@data) { + if ($data->{archived}) { + die "Not altering archived bugs; see unarchive."; + } + } + } if (not __check_limit(data => \@data, exists $param{limit}?(limit => $param{limit}):(), )) { -- 2.39.5