Package: debhelper
Version: 10.2.2
Severity: normal

Hi,

the function getpackages() in Dh_Lib.pm currently expects the Packages
field to come before the Package-Type and Build-Profiles field in binary
stanzas in debian/control. If that's not the case, then the function
will reset the values of the Package-Type and Build-Profiles field. This
should not happen:

 - there is nothing enforcing the order of fields in debian/control
   stanzas
 - rfc822 doesn't care about the order of fields either
 - many (most?) tools parsing deb822 also do not care about the order

Thus, please make the getpackages() function independent of the order
the fields appear in.

Thanks!

cheers, josch

Reply via email to