summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2019-11-07 00:01:46 +0100
committerGuillem Jover <guillem@debian.org>2019-11-26 02:42:45 +0100
commite8c48a3965fe83b4f89c73cf60009e745000fec5 (patch)
tree7b09ddb212e312cc250e35491adebffcb3671cbb
parent6e6bd74a5664b3d354dc7fd892a08eaf928980ad (diff)
downloaddpkg-e8c48a3965fe83b4f89c73cf60009e745000fec5.tar.gz
dpkg-source: Remove backwards compatibility code for legacy build-profiles
-rw-r--r--debian/changelog1
-rwxr-xr-xscripts/dpkg-source.pl7
2 files changed, 1 insertions, 7 deletions
diff --git a/debian/changelog b/debian/changelog
index d28e3257a..c5bad0b90 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -34,6 +34,7 @@ dpkg (1.20.0) UNRELEASED; urgency=medium
* dpkg: Fix and clarify behavior for packages marked to be on “hold”. These
need to be processed for configuration and triggers. Closes: #926472
* dpkg: Use DPKG_ADMINDIR to set the admindir. Closes: #900071
+ * dpkg-source: Remove backwards compatibility code for legacy build-profiles.
* Perl modules:
- Dpkg::Source::Package: Verify original tarball signatures at build time.
- Dpkg::BuildFlags: Add new unset() method.
diff --git a/scripts/dpkg-source.pl b/scripts/dpkg-source.pl
index 32dc1c930..17f916600 100755
--- a/scripts/dpkg-source.pl
+++ b/scripts/dpkg-source.pl
@@ -306,13 +306,6 @@ if ($options{opmode} =~ /^(build|print-format|(before|after)-build|commit)$/) {
$pkg_summary .= ' arch=' . join ',', split ' ', $arch;
if (defined $profile) {
- # If the string does not contain brackets then it is using the
- # old syntax. Emit a fatal error.
- if ($profile !~ m/^\s*<.*>\s*$/) {
- error(g_('binary package stanza %s is using an obsolete ' .
- 'Build-Profiles field syntax'), $p);
- }
-
# Instead of splitting twice and then joining twice, we just do
# simple string replacements: