summaryrefslogtreecommitdiff
path: root/debian/schroot.preinst
diff options
context:
space:
mode:
authorRoger Leigh <rleigh@debian.org>2012-05-10 00:15:07 +0100
committerRoger Leigh <rleigh@debian.org>2012-05-10 00:15:07 +0100
commitb0f881e094e06deacfbd28ee7e73f7605fafda92 (patch)
tree817dd6023cfe4998e4f3fa41f7e33d6318d88d2e /debian/schroot.preinst
parentbf5f11de893b38c9cc6a9f2613f94c4ef072907b (diff)
downloadschroot-b0f881e094e06deacfbd28ee7e73f7605fafda92.tar.gz
debian: Delete config (script-config) files in schroot preinst
Diffstat (limited to 'debian/schroot.preinst')
-rw-r--r--debian/schroot.preinst8
1 files changed, 8 insertions, 0 deletions
diff --git a/debian/schroot.preinst b/debian/schroot.preinst
index 7a2da2d9..ca3e4476 100644
--- a/debian/schroot.preinst
+++ b/debian/schroot.preinst
@@ -56,6 +56,14 @@ install|upgrade)
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
esac
# dh_installdeb will replace this with shell code automatically