diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-05-09 11:38:38 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-05-09 11:38:38 -0500 |
commit | c1049b58d84c6e78ef6647a5b30780d3f5469a8e (patch) | |
tree | 9534468e024c40e28de704574603c9b09d420c03 /ubuntu/maverick/tdebase/debian/ksmserver-trinity.preinst | |
parent | 363baf857d4be40f76d42bf2c831e8defc792798 (diff) | |
download | tde-packaging-c1049b58d84c6e78ef6647a5b30780d3f5469a8e.tar.gz tde-packaging-c1049b58d84c6e78ef6647a5b30780d3f5469a8e.zip |
Remove dpkg-diverts for plasma on Debian and Ubuntu
This resolves Bug 113
Diffstat (limited to 'ubuntu/maverick/tdebase/debian/ksmserver-trinity.preinst')
-rw-r--r-- | ubuntu/maverick/tdebase/debian/ksmserver-trinity.preinst | 78 |
1 files changed, 3 insertions, 75 deletions
diff --git a/ubuntu/maverick/tdebase/debian/ksmserver-trinity.preinst b/ubuntu/maverick/tdebase/debian/ksmserver-trinity.preinst index f4443b487..4a2ab8a19 100644 --- a/ubuntu/maverick/tdebase/debian/ksmserver-trinity.preinst +++ b/ubuntu/maverick/tdebase/debian/ksmserver-trinity.preinst @@ -5,85 +5,13 @@ package_name=ksmserver-trinity case "$1" in upgrade) - rm -f /etc/gdm/Sessions/KDE - rm -f /etc/trinity/debian/starttde - /usr/sbin/update-alternatives --remove x-session-manager /usr/bin/kde2 - /usr/sbin/update-alternatives --remove x-session-manager /usr/bin/trinity + # 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 mkdir -p /usr/share/autostart - - # Intrepid plasma - divert=`dpkg-divert --listpackage /usr/share/autostart/plasma.desktop` - if [ -n "$divert" ] && [ "$divert" = "LOCAL" ]; then - dpkg-divert --remove --local --rename /usr/share/autostart/plasma.desktop - fi - divert=`dpkg-divert --listpackage /usr/bin/plasma` - if [ -n "$divert" ] && [ "$divert" = "LOCAL" ]; then - if [ -L /usr/bin/plasma ]; then - rm -f /usr/bin/plasma - fi - dpkg-divert --remove --local --rename /usr/bin/plasma - divert="" - fi - if [ -z "$divert" ]; then - dpkg-divert --package $package_name --rename \ - --divert /usr/bin/plasma.kde4 \ - --add /usr/bin/plasma - fi - - # Jaunty plasma-desktop - divert=`dpkg-divert --listpackage /usr/share/autostart/plasma-desktop.desktop` - if [ -n "$divert" ] && [ "$divert" = "LOCAL" ]; then - dpkg-divert --remove --local --rename /usr/share/autostart/plasma-desktop.desktop - fi - divert=`dpkg-divert --listpackage /usr/bin/plasma-desktop` - if [ -n "$divert" ] && [ "$divert" = "LOCAL" ]; then - if [ -L /usr/bin/plasma-desktop ]; then - rm -f /usr/bin/plasma-desktop - fi - dpkg-divert --remove --local --rename /usr/bin/plasma-desktop - divert="" - fi - if [ -z "$divert" ]; then - dpkg-divert --package $package_name --rename \ - --divert /usr/bin/plasma-desktop.kde4 \ - --add /usr/bin/plasma-desktop - fi ;; install) - # Intrepid plasma - divert=`dpkg-divert --listpackage /usr/share/autostart/plasma.desktop` - if [ -n "$divert" ] && [ "$divert" = "LOCAL" ]; then - dpkg-divert --remove --local --rename /usr/share/autostart/plasma.desktop - fi - divert=`dpkg-divert --listpackage /usr/bin/plasma` - if [ -n "$divert" ] && [ "$divert" = "LOCAL" ]; then - if [ -L /usr/bin/plasma ]; then - rm -f /usr/bin/plasma - fi - dpkg-divert --remove --local --rename /usr/bin/plasma - divert="" - fi - dpkg-divert --package $package_name --rename \ - --divert /usr/bin/plasma.kde4 \ - --add /usr/bin/plasma - - # Jaunty plasma-desktop - divert=`dpkg-divert --listpackage /usr/share/autostart/plasma-desktop.desktop` - if [ -n "$divert" ] && [ "$divert" = "LOCAL" ]; then - dpkg-divert --remove --local --rename /usr/share/autostart/plasma-desktop.desktop - fi - divert=`dpkg-divert --listpackage /usr/bin/plasma-desktop` - if [ -n "$divert" ] && [ "$divert" = "LOCAL" ]; then - if [ -L /usr/bin/plasma-desktop ]; then - rm -f /usr/bin/plasma-desktop - fi - dpkg-divert --remove --local --rename /usr/bin/plasma-desktop - divert="" - fi - dpkg-divert --package $package_name --rename \ - --divert /usr/bin/plasma-desktop.kde4 \ - --add /usr/bin/plasma-desktop ;; abort-upgrade) |