debbugs (2.4.2) UNRELEASED; urgency=low
+ * Anthony Towns:
+ - Add "package" command to service (control@) to limit the bugs that
+ the following commands apply to.
+
* Colin Watson:
- Add (slightly) fancy CGI decoding of message/* MIME types.
- CGI scripts now support multiple maintainers for a single package.
#!/usr/bin/perl
-# $Id: service.in,v 1.78 2003/06/23 11:23:35 cjwatson Exp $
+# $Id: service.in,v 1.79 2003/07/15 12:20:32 ajt Exp $
# ^ more or less ^
#
# Usage: service <code>.nn
$quickabort = 1;
}
+my %limit_pkgs = ();
my %clonebugs = ();
my @bcc = ();
}
}
}
+ } elsif (m/^package\s+(\S.*\S)$/i) {
+ $ok++;
+ my @pkgs = split /\s+/ $1;
+ if (scalar(@pkgs) > 0) {
+ %limit_pkgs = map { ($_, 1) } @pkgs;
+ &transcript("Ignoring bugs not assigned to: " .
+ join(" ", keys(%limit_pkgs) . "\n\n");
+ } else {
+ %limit_pkgs = ();
+ &transcript("Not ignoring any bugs.\n\n");
+ }
} else {
&transcript("Unknown command or malformed arguments to command.\n\n");
if (++$unknowns >= 5) {
&dlex("setbug => 0s");
return 0;
}
+
+ if ($keys %limit_pkgs && not defined $limit_pkgs{$s_package}) {
+ &transcript("$gBug number $ref belongs to package $s_package, skipping.");
+ &cancelbug;
+ return 0;
+ }
+
@thisbugmergelist= split(/ /,$data->{mergedwith});
if (!@thisbugmergelist) {
&foundbug;