Your message dated Sat, 02 May 2009 19:32:16 +0000
with message-id <[email protected]>
and subject line Bug#523523: fixed in devscripts 2.10.49
has caused the Debian Bug report #523523,
regarding [rc-alert] add debtags functionality
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
523523: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=523523
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: devscripts
Version: 2.10.47
Severity: wishlist
File: /usr/bin/rc-alert
Tags: patch
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA224
Hi,
I'd like to see debtags functionality added to rc-alert (maybe also to
wnpp-alert -- I'll have a look at it later). Reason is simple:
contributors want to help but probably don't know every programming
language. With debtags you can filter for packages implemented in a
specific language.
I've attached a patch to add this feature. It's very simple by now and
only allows one debtag to look for. I consider extending that feature if
you're willing to add it at all. :)
rc-alert --debtags implemented-in::python
I like it. :)
Hauke
(jhr on irc.debian.org)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iFYEARELAAYFAknfqYgACgkQGOp6XeD8cQ12VQDfUD6wv9gWALP8FA+irWDpH9TL
YosDBj/sIaOBeQDfT24ARmyTaYkaWXRp6jl10XPc8LV/yVTKyl9Qmg==
=bKpB
-----END PGP SIGNATURE-----
Index: scripts/rc-alert.pl
===================================================================
--- scripts/rc-alert.pl (revision 1849)
+++ scripts/rc-alert.pl (working copy)
@@ -35,6 +35,7 @@
my $cachefile = $cachedir . basename($url);
my $forcecache = 0;
my $usecache = 0;
+my $debtags_db = '/var/lib/debtags/package-tags';
my %flagmap = ( '(P)' => "pending",
'.(\+)' => "patch",
@@ -63,6 +64,8 @@
my $distincoperation = "or";
my $distexcoperation = "or";
+my $debtags = '';
+
my $progname = basename($0);
my $usage = <<"EOF";
@@ -83,6 +86,9 @@
--include-dist-op Must all distributions be matched for inclusion?
--exclude-dists Set of distributions to exclude
--exclude-dist-op Must all distributions be matched for exclusion?
+
+ Debtags options: (only list packages with matching debtag)
+ --debtags tags (comma seperated, e.g. implemented-in::perl,role::plugin)
EOF
my $version = <<"EOF";
@@ -90,6 +96,7 @@
This code is copyright 2003 by Anthony DeRobertis
Modifications copyright 2003 by Julian Gilbey <[email protected]>
Modifications copyright 2008 by Adam D. Barratt <[email protected]>
+Modifications copyright 2009 by Jan Hauke Rahm <[email protected]>
This program comes with ABSOLUTELY NO WARRANTY.
You are free to redistribute this code under the terms of the
GNU General Public License, version 2, or (at your option) any later version.
@@ -111,6 +118,7 @@
"exclude-dists=s" => \$excludedists,
"include-dist-op|o=s" => \$distincoperation,
"exclude-dist-op=s" => \$distexcoperation,
+ "debtags=s" => \$debtags,
);
if ($opt_help) { print $usage; exit 0; }
@@ -164,6 +172,18 @@
$package_list = InstalledPackages(0);
}
+## Get debtags info
+my %dt_pkg;
+if ($debtags) {
+ open DEBTAGS, $debtags_db or die "$progname: could not read debtags database: $!\n";
+ while (defined(my $line = <DEBTAGS>)) {
+ if ($line =~ /^(.+?)(?::?\s*|:\s+(.+?)\s*)$/) {
+ $dt_pkg{$1} = $2;
+ }
+ }
+ close DEBTAGS;
+}
+
## Read the list of bugs
my $found_bugs_start;
@@ -210,6 +230,10 @@
return unless $flagsapply and $distsapply;
+ if ($debtags) {
+ return unless ($dt_pkg{$args{pkg}} and $dt_pkg{$args{pkg}} =~ /$debtags/);
+ }
+
# yep, relevant
print "Package: $args{pkg}\n",
$comment, # non-empty comments always contain the trailing \n
Index: scripts/rc-alert.1
===================================================================
--- scripts/rc-alert.1 (revision 1849)
+++ scripts/rc-alert.1 (working copy)
@@ -2,7 +2,7 @@
.SH NAME
rc-alert \- check for installed packages with release-critical bugs
.SH SYNOPSIS
-\fBrc-alert [inclusion options] [package ...]\fR
+\fBrc-alert [inclusion options] [\-\-debtags tag] [package ...]\fR
.br
\fBrc-alert \-\-help|\-\-version\fR
.SH DESCRIPTION
@@ -24,7 +24,7 @@
.TP
.BR \-\-version ", " \-v
Show version and copyright information.
-.TP
+.P
It is also possible to filter the list of bugs reported based on the
tags and distributions associated with the package. The filtering options
are:
@@ -62,6 +62,15 @@
If set to \fIand\fP, a bug must apply to all of the specified distributions
in order to be excluded. By default the bug will be excluded if it applies
to any of the listed distributions.
+.P
+Then it is possible to only list bugs which have a specific debtag set. Note
+that you need to have debtags installed and also that it's not mandatory for
+maintainers to set proper debtags by now. Thus the produced list is probably
+incomplete.
+.TP
+.BR \-\-debtags
+One debtag that you want to look for, e.g. implemented-in::perl which would
+only list bugs in packages which are (now guess!) implemented in perl.
.SH EXAMPLES
.TP
.BR \-\-include\-dists " OS"
@@ -83,4 +92,5 @@
.SH AUTHOR
\fBrc-alert\fR was written by Anthony DeRobertis and modified by
Julian Gilbey <[email protected]> and Adam D. Barratt <[email protected]>
-for the devscripts package.
+for the devscripts package. Debtags functionality was added by Jan Hauke Rahm
+<[email protected]>.
--- End Message ---
--- Begin Message ---
Source: devscripts
Source-Version: 2.10.49
We believe that the bug you reported is fixed in the latest version of
devscripts, which is due to be installed in the Debian FTP archive:
devscripts_2.10.49.dsc
to pool/main/d/devscripts/devscripts_2.10.49.dsc
devscripts_2.10.49.tar.gz
to pool/main/d/devscripts/devscripts_2.10.49.tar.gz
devscripts_2.10.49_amd64.deb
to pool/main/d/devscripts/devscripts_2.10.49_amd64.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Adam D. Barratt <[email protected]> (supplier of updated devscripts
package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Sat, 02 May 2009 19:34:55 +0100
Source: devscripts
Binary: devscripts
Architecture: source amd64
Version: 2.10.49
Distribution: unstable
Urgency: low
Maintainer: Devscripts Devel Team <[email protected]>
Changed-By: Adam D. Barratt <[email protected]>
Description:
devscripts - scripts to make the life of a Debian Package maintainer easier
Closes: 478833 518821 520903 523523 523982 524198 524393 525823 526047
Changes:
devscripts (2.10.49) unstable; urgency=low
.
* debchange:
+ Use == for numeric comparison, not eq.
+ Mention in the help output and manpage that a dummy changelog entry
may be supplied in conjunction with --release in order to avoid
spawning an editor.
+ Add a configuration variable and command line option to allow the
recent change to --release's "auto-save" behaviour to be disabled.
For consistency with other debchange options, the default is to
retain the behaviour introduced in 2.10.48 - i.e. that the changelog
must be explicitly saved after the use of --release. (Closes: #524393)
* debcommit: If the installed version of dpkg-dev supports retrieving a
list of appropriate bugs, automatically generate bzr --fixes arguments
for Launchpad bugs as well as Debian bugs. Thanks, Colin Watson.
(Closes: #525823)
* debsign: Make the PGP signing method work again. Thanks, Florian Weimer.
(Closes: #518821)
* getbuildlog: Add a missing "use lib" to allow the special "last" and
"last-all" versions to work correctly. Thanks, Iustin Pop.
(Closes: #523982)
* licensecheck: Add detection of the AGPL. Thanks, Didier Raboud.
(Closes: #520903)
* namecheck: Fix the formatting of a number of POD strings, also making
them easier to translate. Thanks, Florentin Duneau. (Closes: #526047)
* rc-alert:
+ Allow the generated list of bugs to be restricted to those affecting
packages with particular debtags facets. Thanks, Jan Hauke Rahm.
(Closes: #523523)
+ Allow the generated list of bugs to be sorted using popcon results.
Thanks, Jan Hauke Rahm. (Closes: #478833)
* rmadison: Allow a default URL to be specified in the configuration file.
Thanks, Roland Mas. (Closes: #524198)
* uscan: Remove a superfluous and repeated copy of the site name in an FTP
error message. Thanks, Vaclav Ovsik.
* Makefile: Remove cruft relating to French manpages, which has been handled
by the po4a setup for a while now.
Checksums-Sha1:
f8968344ec2742e198eb2d63e87289ea4457db9a 1363 devscripts_2.10.49.dsc
04438fd1485fcbc2eab874539c851b3a01a729ce 660222 devscripts_2.10.49.tar.gz
416303a2b2334e33a7884a76d3b0812a25a3a7b1 564514 devscripts_2.10.49_amd64.deb
Checksums-Sha256:
1c736132a714c5ffc6bed7d6058beaf15eeb30d3b52f73cf824987c14b128d8a 1363
devscripts_2.10.49.dsc
95defb2da2601012f5e93624a023ba2ea10046aade63f2384316f3ece2b8a0b0 660222
devscripts_2.10.49.tar.gz
9fc513514776f5f57303987cb02d00a6d03d200b8e9e86fec6cfc0fbb0f94bfe 564514
devscripts_2.10.49_amd64.deb
Files:
8d75e537043202fa8177210814b9d3e7 1363 devel optional devscripts_2.10.49.dsc
cadfe2da932dba5bdab1cfe00ebc0003 660222 devel optional
devscripts_2.10.49.tar.gz
4b8feae39fa311b90068f6e541c433b9 564514 devel optional
devscripts_2.10.49_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkn8lBUACgkQokcE1TReOoUCfgCbBNubuegOA9SYbcVxEDCkaDli
ETsAoIWaZaAYErK/4fYPFBy8iqJfiy/l
=7QcT
-----END PGP SIGNATURE-----
--- End Message ---