diff options
author | Roger Leigh <rleigh@debian.org> | 2012-07-18 20:05:33 +0100 |
---|---|---|
committer | Roger Leigh <rleigh@debian.org> | 2012-07-18 20:05:33 +0100 |
commit | a68330dd7909fafc5fe7730876e81aeb0f286b6f (patch) | |
tree | 28ea7c900cf80547c8816d7e0bbda378f409fb8c /debian/schroot.preinst | |
parent | 57334dd68cfadc85c0d56d594cced20da031ab91 (diff) | |
download | schroot-a68330dd7909fafc5fe7730876e81aeb0f286b6f.tar.gz |
debian: Remove compatibility symlinks
Compatibility symlinks were being created on install/upgrade
in /etc/schroot. Remove them.
Diffstat (limited to 'debian/schroot.preinst')
-rw-r--r-- | debian/schroot.preinst | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/debian/schroot.preinst b/debian/schroot.preinst index ca3e4476..44178964 100644 --- a/debian/schroot.preinst +++ b/debian/schroot.preinst @@ -46,23 +46,18 @@ prep_mv_conffile() { case "$1" in install|upgrade) - if dpkg --compare-versions "$2" le "1.1.6-1"; then - rm_conffile "schroot" "/etc/schroot/setup.d/20network" - rm_conffile "schroot" "/etc/schroot/setup.d/30passwd" - fi - if dpkg --compare-versions "$2" le "1.4.0-1"; then - rm_conffile "schroot" "/etc/schroot/script-defaults" - rm_conffile "schroot" "/etc/schroot/mount-defaults" - rm_conffile "schroot" "/etc/schroot/copyfiles-defaults" - rm_conffile "schroot" "/etc/schroot/nssdatabases-defaults" - fi if dpkg --compare-versions "$2" lt "1.5.2-1"; then rm_conffile "schroot" "/etc/schroot/buildd/config" rm_conffile "schroot" "/etc/schroot/default/config" rm_conffile "schroot" "/etc/schroot/desktop/config" rm_conffile "schroot" "/etc/schroot/minimal/config" rm_conffile "schroot" "/etc/schroot/sbuild/config" - + fi + if dpkg --compare-versions "$2" lt "1.6.1-1"; then + LINKS="/etc/schroot/copyfiles-defaults /etc/schroot/mount-defaults /etc/schroot/nssdatabases-defaults /etc/schroot/script-defaults" + for link in $LINKS; do + [ -L "$link" ] && rm -f "$link" + done fi esac |