Imported Debian patch 2.6.4-2.3
This commit is contained in:
parent
d8a36de1df
commit
440624271f
2 changed files with 18 additions and 0 deletions
9
debian/changelog
vendored
9
debian/changelog
vendored
|
@ -1,3 +1,12 @@
|
||||||
|
nut (2.6.4-2.3) unstable; urgency=low
|
||||||
|
|
||||||
|
* Non-maintainer upload with fixes for wheezy.
|
||||||
|
* debian/nut-client.preinst: also revert /etc/nut/nut.conf mangling done
|
||||||
|
by postinst during upgrade from lenny to squeeze (Really closes: #677054)
|
||||||
|
Thanks to Andreas Beckmann for the review.
|
||||||
|
|
||||||
|
-- Ivo De Decker <ivo.dedecker@ugent.be> Sat, 26 Jan 2013 20:09:48 +0100
|
||||||
|
|
||||||
nut (2.6.4-2.2) unstable; urgency=low
|
nut (2.6.4-2.2) unstable; urgency=low
|
||||||
|
|
||||||
* Non-maintainer upload with fixes for wheezy.
|
* Non-maintainer upload with fixes for wheezy.
|
||||||
|
|
9
debian/nut-client.preinst
vendored
9
debian/nut-client.preinst
vendored
|
@ -4,6 +4,15 @@ set -e
|
||||||
|
|
||||||
# Revert /etc/nut/nut.conf mangling done by older versions of the postinst
|
# Revert /etc/nut/nut.conf mangling done by older versions of the postinst
|
||||||
# See #677054
|
# See #677054
|
||||||
|
# changed configfile created by a fresh install in lenny, upgraded to squeeze
|
||||||
|
if [ "$1" = "install" -o "$1" = "upgrade" ] \
|
||||||
|
&& dpkg --compare-versions "$2" lt "2.6.4-2" \
|
||||||
|
&& [ -f /etc/nut/nut.conf ] \
|
||||||
|
&& [ "`md5sum /etc/nut/nut.conf | cut -d ' ' -f 1`" = 331cca39153f451c2968f4b734c1cf3f ]; then
|
||||||
|
sed -i '29,$ d' /etc/nut/nut.conf
|
||||||
|
fi
|
||||||
|
|
||||||
|
# changed configfile created by a fresh install in squeeze
|
||||||
if [ "$1" = "install" -o "$1" = "upgrade" ] \
|
if [ "$1" = "install" -o "$1" = "upgrade" ] \
|
||||||
&& dpkg --compare-versions "$2" lt "2.6.4-2" \
|
&& dpkg --compare-versions "$2" lt "2.6.4-2" \
|
||||||
&& [ -f /etc/nut/nut.conf ] \
|
&& [ -f /etc/nut/nut.conf ] \
|
||||||
|
|
Loading…
Reference in a new issue