summaryrefslogtreecommitdiffstats
path: root/debian/lenny/tdebase
diff options
context:
space:
mode:
Diffstat (limited to 'debian/lenny/tdebase')
-rw-r--r--debian/lenny/tdebase/debian/ksmserver-trinity.preinst10
1 files changed, 8 insertions, 2 deletions
diff --git a/debian/lenny/tdebase/debian/ksmserver-trinity.preinst b/debian/lenny/tdebase/debian/ksmserver-trinity.preinst
index 4a2ab8a19..503524a11 100644
--- a/debian/lenny/tdebase/debian/ksmserver-trinity.preinst
+++ b/debian/lenny/tdebase/debian/ksmserver-trinity.preinst
@@ -6,8 +6,14 @@ case "$1" in
upgrade)
# Remove old-style Plasma diversions
- dpkg-divert --package $package_name --rename --remove /usr/bin/plasma || true
- dpkg-divert --package $package_name --rename --remove /usr/bin/plasma-desktop || true
+ divert=`dpkg-divert --listpackage "/usr/bin/plasma"`
+ if [ -n "$divert" ]; then
+ dpkg-divert --package $package_name --rename --remove /usr/bin/plasma
+ fi
+ divert=`dpkg-divert --listpackage "/usr/bin/plasma-desktop"`
+ if [ -n "$divert" ]; then
+ dpkg-divert --package $package_name --rename --remove /usr/bin/plasma-desktop
+ fi
mkdir -p /usr/share/autostart
;;