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

Bug#790422: Parsing.Parse_error



Re: Johannes Schauer 2015-07-01 <20150701114957.2789.95115@hoothoot>
> Hi,
> 
> Quoting Ralf Treinen (2015-06-30 19:22:43)
> > On Mon, Jun 29, 2015 at 03:29:51PM +0200, Johannes Schauer wrote:
> > 
> > > As for the second problem (the empty Packages file) I was annoyed by this
> > > myself for a long time and would like to get to know a use case where an
> > > empty input file would make sense. Currently I'm working around this by
> > > conditionally only running dose3 in my scripts when the input is not empty
> > > but I'd like to get rid of these checks. So I'm curious: what is your use
> > > case to use an empty Packages file?
> > 
> > A possible use case for having one empty input file (along with some others
> > that are not empty) is that a file is generated by a script. For instance,
> > you might have as background all the packages in your distribution, and a
> > script that creates pseudo-packages implementing that you want to have
> > certain packages installed thogether while some others are required to be not
> > installed.

My use case is that I have postgresql-9.{0..6} on apt.postgresql.org,
which are all separate source packages building a host of
postgresql-9.X binaries with different names. These go to the main
component in the repository. However, all these source packages build
libpq5.deb as well, and only one of these (for the latest stable
branch) can go to main. The other libpq5.deb versions are redirected
to components called "9.X".

On the reverse side that means that the 9.X component corresponding to
the latest stable branch is empty. (I can't just disable it because of
symmetry reasons in the config, and because it will get filled if the
stable branch is upgraded to 9.X+1.)


> Pietro just fixed this in git master \o/
> 
> So now empty input files will just represent a package list of zero length :)

Long story, but that's the real-world example here. In fact I'm
considering upgrading the apt.pg.o build host to stretch just because
of this bugfix, and because a backport of the current dose-debcheck
version to jessie looks too hard.

Christoph

PS: I think this bug can be closed now?
-- 
cb@df7cb.de | http://www.df7cb.de/

Attachment: signature.asc
Description: PGP signature


Reply to: