From 24a4f968635d60dde8bd2077d652096119e8d4f9 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Sun, 22 May 2016 17:10:59 +0200 Subject: Revert "Dpkg::Conf: Switch implementation to be hash based" This reverts commit 94e241761c06ab112ec3e899dd9449784928c6c5. This change broke backwards compatibility in multiple ways. The format_argv option was set by default, the order was not preserved, which was important for dpkg.cfg files, and duplicate option names stopped being supported. Add regression tests to avoid similar changes in the future. Closes: #824938 --- scripts/t/Dpkg_Conf/config-mixed | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scripts/t/Dpkg_Conf') diff --git a/scripts/t/Dpkg_Conf/config-mixed b/scripts/t/Dpkg_Conf/config-mixed index d149d388c..87c0405b1 100644 --- a/scripts/t/Dpkg_Conf/config-mixed +++ b/scripts/t/Dpkg_Conf/config-mixed @@ -4,6 +4,7 @@ option-double-quotes = "value double quotes" option-single-quotes = 'value single quotes' option-space = value words space +option-dupe=value1 option-name=value-name # Indented comment. @@ -11,10 +12,12 @@ option-name=value-name option-equal=value-equal=subvalue-equal option-noequal value-noequal +option-dupe=value2 option-simple -# Fully spelled out option. +# Fully spelled out options. --option-dash=value-dash +--option-dupe=value3 # Long option with one character name. l=v -- cgit v1.2.3