my @bugs = @{$info{bugs}};
my $action = "$config{bug} unarchived.";
my @files_to_remove;
+ ## error out if we're unarchiving unarchived bugs
+ for my $data (@{$info{data}}) {
+ if (not defined $data->{archived} or
+ not $data->{archived}
+ ) {
+ __end_control(%info);
+ croak("Bug $data->{bug_num} was not archived; not unarchiving it.");
+ }
+ }
for my $bug (@bugs) {
print {$debug} "$param{bug} removing $bug\n";
my $dir = get_hashname($bug);
* Add rel="canonical" links to bug pages (Closes: #890338). Thanks to Chris
Lamb.
* Fix blocks/blockedby of archived bugs (Closes: #892060). Thanks to Laurent Bigonville.
+ * Provide informative error message when unarchive fails because the bug is
+ not archived. (Closes: #892135). Thanks to Dan Jacobson.
[ Niels Thykier ]
* quitcgi() now returns 400/500 status codes instead of 200 (Closes: #584922)