[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[SCM] Debian package checker branch, master, updated. 1.24.2-85-g299444f



The following commit has been merged in the master branch:
commit a2ad3ad8bda6857ff9353144b2e0916412af75b9
Author: Frank Lichtenheld <djpig@debian.org>
Date:   Wed Aug 6 00:10:20 2008 -0300

    Add new --tags-from-file option
    
    Same functionality like --tags, but read the list of tags from a
    file, one per line. This should make it easier to maintain and
    use a long list of tags.

diff --git a/debian/changelog b/debian/changelog
index fcaa62b..0d82c19 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -126,6 +126,8 @@ lintian (1.24.3) unstable; urgency=low
       run not by check names but by names of tags you're interested
       in. This will not suppress other tags in the selected checks!
       Requested by Joerg Jaspert for ftpmaster.  (Closes: #493903)
+    + [FL] Add --tags-from-file option to make it easier to specify
+      a long list of tags.
 
   * lib/Lintian/Collect/Binary.pm:
     + [ADB] When parsing objdump-info, indicate whether a shared object is
@@ -139,6 +141,7 @@ lintian (1.24.3) unstable; urgency=low
     + [ADB] Update the list of check scripts, removing the no longer present
       deb-format and perl and adding the nmu script.
     + [FL] Document the new --tags/-T option.
+    + [FL] Document the new --tags-from-file option.
 
   * testset/fields:
     + [ADB] New testset from Tobias Quathamer (including some tags which
diff --git a/frontend/lintian b/frontend/lintian
index 86c0674..e0eebd6 100755
--- a/frontend/lintian
+++ b/frontend/lintian
@@ -130,6 +130,7 @@ Actions:
     -C X, --check-part X      check only certain aspects
     -X X, --dont-check-part X don\'t check certain aspects
     -T X, --tags X            only run checks needed for requested tags
+    --tags-from-file X        like --tags, but read list from file
     -u, --unpack              only unpack packages in the lab
     -r, --remove              remove package from the lab
 General options:
@@ -226,6 +227,17 @@ sub record_check_tags {
     $check_tags = "$_[1]";
 }
 
+# Record Parts requested for checking
+# Options: --tags-from-file
+sub record_check_tags_from_file {
+    open my $file, '<', $_[1]
+	or fail("failed to open $_[1]: $!");
+    my $tags =  join(',', map { chomp($_); $_ } <$file>);
+    close $file;
+
+    record_check_tags($_[0], $tags);
+}
+
 
 # Record Parts requested not to check
 # Options: -X|--dont-check-part X
@@ -267,6 +279,7 @@ my %opthash = (			# ------------------ actions
 	       "check|c" => \&record_action,
 	       "check-part|C=s" => \&record_check_part,
 	       "tags|T=s" => \&record_check_tags,
+	       "tags-from-file=s" => \&record_check_tags_from_file,
 	       "dont-check-part|X=s" => \&record_dont_check_part,
 	       "unpack|u" => \&record_action,
 	       "remove|r" => \&record_action,
diff --git a/man/lintian.1 b/man/lintian.1
index 5dde18a..ab9f3f6 100644
--- a/man/lintian.1
+++ b/man/lintian.1
@@ -93,6 +93,12 @@ Run only the checks that issue the requested tags.  This
 will not supress other tags issues by the checks' run!
 
 .TP
+.BR \-\-tags\-from\-file " filename"
+Same functionality like
+.BR \-\-tags ,
+but read the list of tags from a file, one per line.
+
+.TP
 .BR \-X " chk1,chk2,..., " \-\-dont\-check\-part " chk1,chk2,..."
 Run all but the the specified checks.  You can either specify
 the name of the check script or the abbreviation.

-- 
Debian package checker


Reply to: