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

Bug#647917: marked as done (UDD: Update lintian tag regex)



Your message dated Mon, 28 Nov 2011 13:58:53 +0000
with message-id <20111128135852.GA7552@raleigh>
and subject line Re: Bug#647917: UDD: Update lintian tag regex
has caused the Debian Bug report #647917,
regarding UDD: Update lintian tag regex
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
647917: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=647917
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: qa.debian.org
Severity: normal
User: qa.debian.org@packages.debian.org
Usertags: udd

Hi,

The coming version of lintian is changing output format for tags on
lintian.d.o.  The new format is

C: pkg type (version) [arch]: tag extra

(Where "extra" is the only optional value that may be left out).

I have attached the lintian code that examines this part of the log
file below[1].  The regex should be backwards compatible with the old
style log format, so UDD migration should be possible already now.

~Niels

[1]
"""

# Matches something like:  (1:2.0-3) [arch1 arch2]
# - captures the version and the architectures
my $verarchre = qr,(?: \s* \(( [^)]++ )\) \s* \[ ( [^]]++ ) \]),xo;
#                             ^^^^^^^^          ^^^^^^^^^^^^
#                           ( version   )      [architecture ]

# matches the full deal:
#    1  222 3333  4444444   5555   666  777
# -  T: pkg type (version) [arch]: tag [...]
#           ^^^^^^^^^^^^^^^^^^^^^
# Where the marked part(s) are optional values.  The numbers above the example
# are the capture groups.
my $fullre = qr/([EWIXOP]): (\S+)(?: (\S+)(?:$verarchre)?)?: (\S+)(?:\s+(.*))?/o;
while (<>) {
    chomp;
    next unless m/^$fullre/o;
    my ($code, $package, $type, $pver, $parch, $tag, $extra) = ($1, $2, $3, $4, $5, $6, $7);
"""



--- End Message ---
--- Begin Message ---
Hiya,

On Mon, Nov 07, 2011 at 05:18:01PM +0100, Niels Thykier wrote:
> Package: qa.debian.org
> Severity: normal
> User: qa.debian.org@packages.debian.org
> Usertags: udd
> 
> Hi,
> 
> The coming version of lintian is changing output format for tags on
> lintian.d.o. 

Fixed in r2094[0].

Cheers,

-- 
Iain Lane                                  [ iain@orangesquash.org.uk ]
Debian Developer                                   [ laney@debian.org ]
Ubuntu Developer                                   [ laney@ubuntu.com ]
PhD student                                       [ ial@cs.nott.ac.uk ]

[0] http://anonscm.debian.org/viewvc/collab-qa?view=revision&revision=2094

Attachment: signature.asc
Description: Digital signature


--- End Message ---

Reply to: