diff options
author | madduck <madduck@3cfab66f-1918-0410-86b3-c06b76f9a464> | 2006-09-16 11:03:00 +0000 |
---|---|---|
committer | madduck <madduck@3cfab66f-1918-0410-86b3-c06b76f9a464> | 2006-09-16 11:03:00 +0000 |
commit | ebe70cb44c38794acecfa02ed0c2b1c5a577cb36 (patch) | |
tree | d00ba9b9b044250a301fae46ac84eb2ccf5d4a64 /debian | |
parent | 650c05fd5496661231cda1435598f8c2364e08f3 (diff) |
Added stripped implementation of debconf-escape to .config file to cater
for upgrades from systems with older debconf versions.
Diffstat (limited to 'debian')
-rw-r--r-- | debian/changelog | 7 | ||||
-rw-r--r-- | debian/mdadm.config | 13 |
2 files changed, 20 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog index 675a5114..f88cf21a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +mdadm (2.5.3.git200608202239-5~unreleased.3) UNRELEASED; urgency=low + + * Added stripped implementation of debconf-escape to .config file to cater + for upgrades from systems with older debconf versions. + + -- martin f. krafft <madduck@debian.org> Sat, 16 Sep 2006 13:01:26 +0200 + mdadm (2.5.3.git200608202239-5~unreleased.2) UNRELEASED; urgency=medium * Modified the patch responsible for pruning parent devices so that diff --git a/debian/mdadm.config b/debian/mdadm.config index 9fdde4dc..1376e578 100644 --- a/debian/mdadm.config +++ b/debian/mdadm.config @@ -79,6 +79,19 @@ get_initrdstart() { db_capb escape +if [ ! -x "$(command -v debconf-escape)" ]; then + debconf-escape() + { # copied from debconf 1.4.72: + perl -e ' + while (<>) { + s/\\/\\\\/g; + s/\n/\\n/g; + print; + } + ' + } +fi + msg=intro; suffix=''; error=0 while true; do db_metaget mdadm/initrdstart_msg_${msg} extended_description || : |