[SCM] Debian package checker branch, master, updated. 2.2.18-33-g3cfd89c
The following commit has been merged in the master branch:
commit 77e4af8b6cf44401b8d2cf2b6a2695bba90c50dc
Author: Russ Allbery <rra@debian.org>
Date: Mon Dec 21 00:17:30 2009 -0800
Add a tag accessor method to Lintian::Tag::Info
diff --git a/debian/changelog b/debian/changelog
index 6fddcb9..3e2fb0e 100755
--- a/debian/changelog
+++ b/debian/changelog
@@ -21,7 +21,7 @@ lintian (2.2.19) UNRELEASED; urgency=low
+ [RA] Add a code method that returns the tag code corresponding to
the severity and certainty for a tag, based on get_tag_code from
Tags.pm.
- + [RA] Add certainty and severity accessor methods.
+ + [RA] Add certainty, severity, and tag accessor methods.
+ [RA] Add a method saying whether a tag is experimental.
+ [RA] Record the check script corresponding to each tag and add an
accessor method for it.
diff --git a/lib/Lintian/Tag/Info.pm b/lib/Lintian/Tag/Info.pm
index 0d4dfaf..1d7e72c 100644
--- a/lib/Lintian/Tag/Info.pm
+++ b/lib/Lintian/Tag/Info.pm
@@ -347,6 +347,17 @@ sub sources {
return @refs;
}
+=item tag()
+
+Returns the tag name.
+
+=cut
+
+sub tag {
+ my ($self) = @_;
+ return $self->{tag};
+}
+
=back
=head1 DIAGNOSTICS
--
Debian package checker
Reply to: