Hi!

On Wed, 2009-01-14 at 17:19:45 +0200, Eugene V. Lyubimkin wrote:
> Raphael Hertzog wrote:
> > On Wed, 14 Jan 2009, Eugene V. Lyubimkin wrote:
> > > My wish is remove this exception and put 'Essential: yes' line after
> > > 'Status:' line as dpkg does for all other package entry lines.

Hmm, I don't see any exception here, dpkg is always outputting the
Essential field (if it has a 'yes' value) just after the Package
field.

> > And what is the rationale for this change?
> > 
> > (Such a change needs a rationale, it won't be done just to please you)

> It may (may, not essentially will) simplify some code that parse
> /var/lib/dpkg/status.

Well arguably, no one except dpkg should be parsing the status file. I
know this might be tricky right now as dpkg does not provide a nicer
way to access the whole data, which for example apt might need. But I
hope to fix this during squeeze with the introduction of a libdpkg.

> Now one can't rely that it will be always 'Status' line after 'Package'
> entry.

And one shouldn't!

> And, not related to previous, removing exception from some rule
> usually leads to cleaner understandings and cleaner and smaller
> code. If it's not the case, or such a change may break anything,
> then the change is undesirable. This is only a wish, after all.

Again, I don't see the exception, for example dpkg will not care at
all about the ordering of the fields, and will happily parse all
fields from a reshuffled stanza w/o problems.

So, I'm not sure I see the point in this bug report.

regards,
guillem



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to