summaryrefslogtreecommitdiff
path: root/scripts/t/Dpkg_Conf
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2016-05-22 17:10:59 +0200
committerGuillem Jover <guillem@debian.org>2016-07-03 18:44:23 +0200
commit24a4f968635d60dde8bd2077d652096119e8d4f9 (patch)
treee8ce8470932b3c909a94db983a9b345f1d72db88 /scripts/t/Dpkg_Conf
parent8b3cd883be8d5236f2c78b245bc7e0bd8f712888 (diff)
downloaddpkg-24a4f968635d60dde8bd2077d652096119e8d4f9.tar.gz
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
Diffstat (limited to 'scripts/t/Dpkg_Conf')
-rw-r--r--scripts/t/Dpkg_Conf/config-mixed5
1 files changed, 4 insertions, 1 deletions
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