1 |
On Wed, 15 Jan 2014 20:23:26 -0500 |
2 |
"Jesus Rivero (Neurogeek)" <neurogeek@g.o> wrote: |
3 |
|
4 |
> On Jan 15, 2014 7:08 PM, "Tom Wijsman" <tomwij@g.o> wrote: |
5 |
> |
6 |
> > PortageInternalVariableAssignment(LineCheck): e += ' on line: %d' |
7 |
> > return e |
8 |
> > |
9 |
> > +class DeprecateG2CONF(LineCheck): |
10 |
> > + repoman_check_name = 'G2CONF.deprecated' |
11 |
> > + re = re.compile(r'.*G2CONF.*') |
12 |
> > + |
13 |
> > + def check(self, num, line): |
14 |
> > + """Run the check on line and return error if there |
15 |
> > is |
16 |
> one""" |
17 |
> > + m = self.re.match(line) |
18 |
> > + if m is not None: |
19 |
> > + return ("G2CONF on line %d is deprecated, |
20 |
> > see Gentoo bug #482084.") |
21 |
> |
22 |
> Are you missing the line number interpolation here? or %d is supposed |
23 |
> to be returned? |
24 |
|
25 |
That is filled in by the function which calls check(...), you can see |
26 |
the same happen with the "e += ' on line: %d'" of the other check that |
27 |
made it into the context of this patch; when testing this, it worked |
28 |
properly in the repoman output. |
29 |
|
30 |
-- |
31 |
With kind regards, |
32 |
|
33 |
Tom Wijsman (TomWij) |
34 |
Gentoo Developer |
35 |
|
36 |
E-mail address : TomWij@g.o |
37 |
GPG Public Key : 6D34E57D |
38 |
GPG Fingerprint : C165 AF18 AB4C 400B C3D2 ABF0 95B2 1FCD 6D34 E57D |