diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2003-09-27 02:07:12 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2003-09-27 02:07:12 +0000 |
commit | 318ab20b369ad9d0841c87854180b0a05158bc65 (patch) | |
tree | 5f4da32297bdec5dd479126088060bba2c6b825c /app-portage | |
parent | remove temporarily (diff) | |
download | gentoo-2-318ab20b369ad9d0841c87854180b0a05158bc65.tar.gz gentoo-2-318ab20b369ad9d0841c87854180b0a05158bc65.tar.bz2 gentoo-2-318ab20b369ad9d0841c87854180b0a05158bc65.zip |
re-add with -ko options
Diffstat (limited to 'app-portage')
-rw-r--r-- | app-portage/lintool/files/lintool-0.2.4-fixyear.diff | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/app-portage/lintool/files/lintool-0.2.4-fixyear.diff b/app-portage/lintool/files/lintool-0.2.4-fixyear.diff new file mode 100644 index 000000000000..d49d392112b9 --- /dev/null +++ b/app-portage/lintool/files/lintool-0.2.4-fixyear.diff @@ -0,0 +1,27 @@ +--- /usr/lib/python2.2/site-packages/lintool/ebuild.py.old 2003-03-29 15:44:42.000000000 -0800 ++++ /usr/lib/python2.2/site-packages/lintool/ebuild.py 2003-03-29 15:58:07.000000000 -0800 +@@ -7,6 +7,7 @@ + import os + import os.path + import string ++from time import gmtime, time, strftime + + class TestSpaces(Test): + +@@ -56,12 +57,14 @@ + + def __init__(self, formatter, options): + Test.__init__(self,formatter, options) ++ # get current year ++ currentyear = strftime("%Y",gmtime(time())) + self.desc = "Testing for malformed headers" + self.want = [ [ 0, # count +- re.compile("^(# Copyright .*2002.*)"), ++ re.compile("^(# Copyright .*"+currentyear+".*)"), + "Copyright statement" ], + [ 0, # count +- re.compile("^(# \$Header:.*\$)"), ++ re.compile("^(# \$Header.*\$)"), + "\$Header: \$" ], + [ 0, # count + re.compile("^(# Distributed under the terms of the GNU General Public License.*)"), |