Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 29674
Collapse All | Expand All

(-)file_not_specified_in_diff (-3 / +6 lines)
Line  Link Here
0
-- lintool-0.2.4.orig/src/lintool/ebuild.py    2002-10-30 13:35:31.000000000 -0800
0
++ lintool-0.2.4/src/lintool/ebuild.py 2003-09-25 18:22:30.000000000 -0700
Lines 7-12 Link Here
7
import os
7
import os
8
import os.path
8
import os.path
9
import string
9
import string
10
from time import gmtime, time, strftime
10
11
11
class TestSpaces(Test):
12
class TestSpaces(Test):
12
13
Lines 56-68 Link Here
56
57
57
  def __init__(self, formatter, options):
58
  def __init__(self, formatter, options):
58
    Test.__init__(self,formatter, options)
59
    Test.__init__(self,formatter, options)
60
    # get current year
61
    currentyear = strftime("%Y",gmtime(time()))
59
    self.desc = "Testing for malformed headers"
62
    self.desc = "Testing for malformed headers"
60
    self.want = [ [ 0, # count
63
    self.want = [ [ 0, # count
61
                    re.compile("^(# Copyright .*2002.*)"), 
64
                    re.compile("^(# Copyright .*"+currentyear+".*)"), 
62
                    "Copyright statement" ],
65
                    "Copyright statement" ],
63
                  [ 0, # count
66
                  [ 0, # count
64
                    re.compile("^(# \$Header:.*\$)"),
67
                    re.compile("^(# \$Header:.*\$)"),
65
                    "\$Header: \$" ],
68
                    "\$Header: /home/cvsroot/gentoo-x86/app-portage/lintool/files/lintool-0.2.4-fixyear.diff,v 1.1 2003/09/26 01:26:37 robbat2 Exp $" ],
66
                  [ 0, # count
69
                  [ 0, # count
67
                    re.compile("^(# Distributed under the terms of the GNU General Public License.*)"),
70
                    re.compile("^(# Distributed under the terms of the GNU General Public License.*)"),
68
                    "GPL license" ] ]
71
                    "GPL license" ] ]

Return to bug 29674