Bug#893418: Corrupted package names in by_vote.gz
- To: 893418@bugs.debian.org, Enrico Zini <enrico@debian.org>
- Cc: Bill Allombert <ballombe@debian.org>
- Subject: Bug#893418: Corrupted package names in by_vote.gz
- From: Bill Allombert <ballombe@debian.org>
- Date: Sun, 8 Apr 2018 18:53:00 +0200
- Message-id: <[🔎] 20180408165300.GB21706@yellowpig>
- Reply-to: Bill Allombert <ballombe@debian.org>, 893418@bugs.debian.org
- In-reply-to: <20180323151828.GB3234@yellowpig>
- References: <152139703797.23090.15201118542824252955.reportbug@ploma.enricozini.org> <20180322220617.GE4017@yellowpig> <20180323102827.qv4qsxv3emwklgt4@enricozini.org> <20180323104937.GH4017@yellowpig> <20180323122920.gw3yyj75a4h6jpz5@enricozini.org> <20180323131007.GA32575@yellowpig> <20180323132439.6rddjetln63zfrxe@enricozini.org> <152139703797.23090.15201118542824252955.reportbug@ploma.enricozini.org> <20180323143501.GA3234@yellowpig> <20180323151828.GB3234@yellowpig> <152139703797.23090.15201118542824252955.reportbug@ploma.enricozini.org>
On Fri, Mar 23, 2018 at 04:18:28PM +0100, Bill Allombert wrote:
> On Fri, Mar 23, 2018 at 03:35:01PM +0100, Bill Allombert wrote:
> > On Fri, Mar 23, 2018 at 02:24:39PM +0100, Enrico Zini wrote:
> > > On Fri, Mar 23, 2018 at 02:10:07PM +0100, Bill Allombert wrote:
> > >
> > > > > Probably. Is the format of that file documented somewhere?
> > > > This is a list of key/value pair in RFC822 style.
> > > > See /usr/share/doc/popularity-contest/examples/bin/README.examples
> > > > for the format of the Package line.
> > >
> > > I have a few questions:
> > >
> > > How is the package name separated from the integer fields? It does not
> > > look like a fixed-width field:
> > >
> > > Package: abev-form-obhgepi-fpk-nav 0 0 0 2
> > > Package: abev-form-obhgepi-fpk-nav-egyeb 0 0 0 2
> > >
> > > If it is instead space-separated, currently I didn't see package names
> > > that contained spaces, but is there a guarantee that the package name
> > > won't contain spaces?
> >
> > It is garanteed that package name will not contain spaces.
> >
> > > Alternatively, should the parsing instead be done by splitting on \s+
> > > from the right with a maximum of 4 splits?
> > >
> > > Some package names seem to be truncated, like this one:
> > >
> > > Package: apache-openoffice-4.1.4-linux-x86-install-rpm-de 0 0 0 1
> >
> > The server should not truncate anything. I will check what happened.
>
> The package name is truncated in the submitter report already.
> Maybe dpkg-query truncated it, maybe it was truncated even before.
In fact there is no truncation: -de is the language code for german!
<https://www.openoffice.org/de/download/>
Apparently a number of non-official packages use the character _ in their
name.
I have fixed the corruptions caused by truncated reports.
Do you still see corrupted entries?
Cheers,
--
Bill. <ballombe@debian.org>
Imagine a large red swirl here.
Reply to: