summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog2
-rwxr-xr-xscripts/dpkg-buildpackage.pl2
2 files changed, 3 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index 14a311e31..1cee622ad 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -64,6 +64,8 @@ dpkg (1.19.1) UNRELEASED; urgency=medium
for short key IDs and warn for long key IDs.
* On the dpkg conffile prompt, print the set of environment variables setup
for the conffile shell, for easier discoverability.
+ * Fix dpkg-buildpackage option --rules-file parsing. It was trying to parse
+ it as --rules-target, which due to the ordering was a no-op.
* Architecture support:
- Add support for riscv64 CPU. Closes: #822914
Thanks to Manuel A. Fernandez Montecelo <mafm@debian.org>
diff --git a/scripts/dpkg-buildpackage.pl b/scripts/dpkg-buildpackage.pl
index ee41555d7..ea2c61a47 100755
--- a/scripts/dpkg-buildpackage.pl
+++ b/scripts/dpkg-buildpackage.pl
@@ -346,7 +346,7 @@ while (@ARGV) {
} elsif (m/^-[EW]$/) {
# Deprecated option
warning(g_('-E and -W are deprecated, they are without effect'));
- } elsif (/^-R(.*)$/ or /^--rules-target=(.*)$/) {
+ } elsif (/^-R(.*)$/ or /^--rules-file=(.*)$/) {
my $arg = $1;
@debian_rules = split ' ', $arg;
} else {