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

Bug#555978: debian-policy: Forbid duplicate fields in control files



On Thu, 12 Nov 2009, Russ Allbery wrote:
> Tag: debian-control-with-duplicate-fields
> Severity: serious
> Certainty: certain
> Info: One of the paragraphs of your debian/control contains the same
>  field more than once. This can lead to unexpected behaviour in
>  <tt>dpkg</tt> and <tt>apt</tt>.
> 
> (I haven't checked the assertion about unexpected behavior) and this

$ LANG=C dpkg-gencontrol -plibvte9
dpkg-gencontrol: error: syntax error in debian/control at line 29: duplicate field Architecture found

It's checked at build time at least.

> check is among those that ftpmaster uses to reject packages.  I think
> we should prohibit such duplicate fields in Policy as well.

OK for me.

Cheers,
-- 
Raphaël Hertzog



Reply to: