lintian: r50 - in trunk: checks debian testset testset/scripts testset/scripts/debian
Author: djpig
Date: 2004-02-21 17:29:04 +0100 (Sat, 21 Feb 2004)
New Revision: 50
Added:
trunk/testset/scripts/tkfoo
Modified:
trunk/checks/scripts
trunk/debian/changelog
trunk/testset/info_tags.scripts
trunk/testset/scripts/debian/changelog
trunk/testset/scripts/debian/rules
trunk/testset/tags.scripts
Log:
Fix check for "exec ..." line. Fix suggested by Josip Rodin.
(Closes: #212811)
Modified: trunk/checks/scripts
===================================================================
--- trunk/checks/scripts 2004-02-21 15:57:09 UTC (rev 49)
+++ trunk/checks/scripts 2004-02-21 16:29:04 UTC (rev 50)
@@ -504,7 +504,7 @@
while (<IN>) {
last if (++$i > 20);
chomp;
- if (/^\s*exec\s*.+\s*.?\$0.?\s*(\${1\+)?.?\$\@/) {
+ if (/^\s*exec\s*.+\s*.?\$0.?\s*(--\s*)?(\${1\+)?.?\$\@/) {
$ret = 1;
last;
}
Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog 2004-02-21 15:57:09 UTC (rev 49)
+++ trunk/debian/changelog 2004-02-21 16:29:04 UTC (rev 50)
@@ -4,6 +4,9 @@
* checks/fields:
+ Really check only "real" dependency fields for needlessy
depends (Closes: #185035)
+ * checks/scripts:
+ + Fix check for "exec ..." line. Fix suggested by Josip Rodin.
+ (Closes: #212811)
-- Frank Lichtenheld <djpig@debian.org> Sat, 21 Feb 2004 16:55:27 +0100
Modified: trunk/testset/info_tags.scripts
===================================================================
--- trunk/testset/info_tags.scripts 2004-02-21 15:57:09 UTC (rev 49)
+++ trunk/testset/info_tags.scripts 2004-02-21 16:29:04 UTC (rev 50)
@@ -24,6 +24,7 @@
N:
E: scripts: binary-without-manpage py2foo
E: scripts: binary-without-manpage pyfoo
+E: scripts: binary-without-manpage tkfoo
E: scripts: python-script-but-no-python-dep ./usr/bin/pyfoo
N:
N: Packages with scripts that are executed with python must depend on the
Modified: trunk/testset/scripts/debian/changelog
===================================================================
--- trunk/testset/scripts/debian/changelog 2004-02-21 15:57:09 UTC (rev 49)
+++ trunk/testset/scripts/debian/changelog 2004-02-21 16:29:04 UTC (rev 50)
@@ -1,3 +1,9 @@
+scripts (2) unstable; urgency=low
+
+ * Add tkfoo script for tk checkings
+
+ -- Lintian Maintainers <lintian-maint@debian.org> Sat, 21 Feb 2004 17:13:36 +0100
+
scripts (1) unstable; urgency=low
* Initial version
Modified: trunk/testset/scripts/debian/rules
===================================================================
--- trunk/testset/scripts/debian/rules 2004-02-21 15:57:09 UTC (rev 49)
+++ trunk/testset/scripts/debian/rules 2004-02-21 16:29:04 UTC (rev 50)
@@ -14,6 +14,7 @@
install -m 755 pyfoo $(tmp)/usr/bin/
install -m 755 py2foo $(tmp)/usr/bin/
install -m 755 perlfoo $(tmp)/usr/bin/
+ install -m 755 tkfoo $(tmp)/usr/bin/
cp debian/changelog $(tmp)/usr/share/doc/scripts/changelog
gzip -9 $(tmp)/usr/share/doc/scripts/changelog
Added: trunk/testset/scripts/tkfoo
===================================================================
--- trunk/testset/scripts/tkfoo 2004-02-21 15:57:09 UTC (rev 49)
+++ trunk/testset/scripts/tkfoo 2004-02-21 16:29:04 UTC (rev 50)
@@ -0,0 +1,12 @@
+#!/bin/sh
+# This line makes the next one a comment in Tcl \
+exec wish "$0" -- ${1+"$@"}
+
+# lintian should not check the following for syntax
+# if it detects the line above correctly
+# Code snippet taken from eTkTab
+
+if { [array names prefs keybindings] != "" } {
+ # Read in the file
+ array set unparsed_bindings [ read_settings_file $prefs(keybindings)]
+}
Property changes on: trunk/testset/scripts/tkfoo
___________________________________________________________________
Name: svn:executable
+ *
Modified: trunk/testset/tags.scripts
===================================================================
--- trunk/testset/tags.scripts 2004-02-21 15:57:09 UTC (rev 49)
+++ trunk/testset/tags.scripts 2004-02-21 16:29:04 UTC (rev 50)
@@ -2,6 +2,7 @@
E: scripts: binary-without-manpage perlfoo
E: scripts: binary-without-manpage py2foo
E: scripts: binary-without-manpage pyfoo
+E: scripts: binary-without-manpage tkfoo
E: scripts: python-script-but-no-python-dep ./usr/bin/pyfoo
E: scripts: python-script-but-no-python-dep ./usr/bin/py2foo
E: scripts: no-copyright-file
Reply to: