The following commit has been merged in the master branch:
commit 00b1d9dce71ff7b73ecba3b38d65c4a9ace7a9da
Author: Raphael Hertzog <[email protected]>
Date: Fri May 15 18:09:25 2009 +0200
dpkg-source/dpkg-genchanges: split long Binary: field values
diff --git a/debian/changelog b/debian/changelog
index f712817..8d9e386 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -72,6 +72,8 @@ dpkg (1.15.4) UNRELEASED; urgency=low
cputable (and so that a versioned build-dependency on dpkg-dev is enough
to use this new feature)
Closes: #531307
+ * Split overly long Binary: field values over multiple lines. This is
+ allowed since policy 3.8.3. Closes: #494714
[ Modestas Vainius ]
* Provide a meaningful label for dpkg-gensymbols diff.
diff --git a/scripts/dpkg-genchanges.pl b/scripts/dpkg-genchanges.pl
index 5c28859..c7baa7e 100755
--- a/scripts/dpkg-genchanges.pl
+++ b/scripts/dpkg-genchanges.pl
@@ -484,6 +484,8 @@ if (!defined($fields->{'Date'})) {
}
$fields->{'Binary'} = join(' ', map { $_->{'Package'} }
$control->get_packages());
+# Avoid overly long line (>~1000 chars) by splitting over multiple lines
+$fields->{'Binary'} =~ s/(.{980,}?) /$1\n /g;
unshift(@archvalues,'source') unless is_binaryonly;
@archvalues = ('all') if $include == ARCH_INDEP;
diff --git a/scripts/dpkg-source.pl b/scripts/dpkg-source.pl
index cf13936..008d1a6 100755
--- a/scripts/dpkg-source.pl
+++ b/scripts/dpkg-source.pl
@@ -245,6 +245,8 @@ if ($options{'opmode'} eq 'build') {
}
$fields->{'Binary'} = join(', ', @binarypackages);
+ # Avoid overly long line (>~1000 chars) by splitting over multiple lines
+ $fields->{'Binary'} =~ s/(.{980,}?), ?/$1,\n /g;
# Generate list of formats to try
my @try_formats = (@cmdline_formats);
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]