From: Raphael Hertzog Date: Wed, 2 Apr 2008 06:51:03 +0000 (+0200) Subject: Ensure the Files field is last in *.dsc and *.changes X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dddfbefcb95c0b5e36fe1ad7fea8e4e89650fddf;p=dpkg Ensure the Files field is last in *.dsc and *.changes * scripts/Dpkg/Source/Package.pm, scripts/dpkg-genchanges.pl: Explicitely put Checksums-* fields before the Files field so that the Files field is last. This is a work-around for some braindead dsc parsers (dupload and sbuild for instance, see #473518 and --- diff --git a/ChangeLog b/ChangeLog index 72a8c509..c8ae50bc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2008-04-02 Raphael Hertzog + + * scripts/Dpkg/Source/Package.pm, scripts/dpkg-genchanges.pl: + Explicitely put Checksums-* fields before the Files field so that + the Files field is last. This is a work-around for some braindead + dsc parsers (dupload and sbuild for instance, see #473518 and + #470440). + 2008-04-01 Raphael Hertzog * scripts/Dpkg/Source/Package/V2_0.pm: Add the option diff --git a/debian/changelog b/debian/changelog index eb777a18..6fc29deb 100644 --- a/debian/changelog +++ b/debian/changelog @@ -16,6 +16,9 @@ dpkg (1.14.18) UNRELEASED; urgency=low * The dpkg-source option --skip-patches disables application of patches during extraction of source packages using Format: 2.0 or Format: 3.0 (quilt). + * Ensure the Files field is last in *.dsc and *.changes. This is a + work-around for some braindead dsc parsers (dupload and sbuild for + instance, see #473518 and #470440). [ Updated dselect translations ] * German. (Sven Joachim). diff --git a/scripts/Dpkg/Source/Package.pm b/scripts/Dpkg/Source/Package.pm index f43bd709..42a792af 100644 --- a/scripts/Dpkg/Source/Package.pm +++ b/scripts/Dpkg/Source/Package.pm @@ -89,7 +89,7 @@ my @dsc_fields = (qw(Format Source Binary Architecture Version Origin Standards-Version Vcs-Browser Vcs-Arch Vcs-Bzr Vcs-Cvs Vcs-Darcs Vcs-Git Vcs-Hg Vcs-Mtn Vcs-Svn), @src_dep_fields, - qw(Files)); + qw(Checksums-Md5 Checksums-Sha1 Checksums-Sha256 Files)); # Object methods sub new { diff --git a/scripts/dpkg-genchanges.pl b/scripts/dpkg-genchanges.pl index b125fd99..c886cd3d 100755 --- a/scripts/dpkg-genchanges.pl +++ b/scripts/dpkg-genchanges.pl @@ -25,7 +25,8 @@ textdomain("dpkg-dev"); my @changes_fields = qw(Format Date Source Binary Architecture Version Distribution Urgency Maintainer Changed-By - Description Closes Changes Files); + Description Closes Changes Checksums-Md5 + Checksums-Sha1 Checksums-Sha256 Files); my $controlfile = 'debian/control'; my $changelogfile = 'debian/changelog';