Fix removing local diverts in tdebase on Debian and Ubuntu

pull/3/head
Slávek Banko 11 years ago
parent 40bf6cee5c
commit eb07de8662

@ -8,12 +8,20 @@ case "$1" in
# Remove old-style Plasma diversions # Remove old-style Plasma diversions
divert=`dpkg-divert --listpackage "/usr/bin/plasma"` divert=`dpkg-divert --listpackage "/usr/bin/plasma"`
if [ -n "$divert" ]; then if [ -n "$divert" ]; then
if [ "$divert" = "LOCAL" ]; then
dpkg-divert --local --rename --remove /usr/bin/plasma
else
dpkg-divert --package $package_name --rename --remove /usr/bin/plasma dpkg-divert --package $package_name --rename --remove /usr/bin/plasma
fi fi
fi
divert=`dpkg-divert --listpackage "/usr/bin/plasma-desktop"` divert=`dpkg-divert --listpackage "/usr/bin/plasma-desktop"`
if [ -n "$divert" ]; then if [ -n "$divert" ]; then
if [ "$divert" = "LOCAL" ]; then
dpkg-divert --local --rename --remove /usr/bin/plasma-desktop
else
dpkg-divert --package $package_name --rename --remove /usr/bin/plasma-desktop dpkg-divert --package $package_name --rename --remove /usr/bin/plasma-desktop
fi fi
fi
mkdir -p /usr/share/autostart mkdir -p /usr/share/autostart
;; ;;

@ -8,12 +8,20 @@ case "$1" in
# Remove old-style Plasma diversions # Remove old-style Plasma diversions
divert=`dpkg-divert --listpackage "/usr/bin/plasma"` divert=`dpkg-divert --listpackage "/usr/bin/plasma"`
if [ -n "$divert" ]; then if [ -n "$divert" ]; then
if [ "$divert" = "LOCAL" ]; then
dpkg-divert --local --rename --remove /usr/bin/plasma
else
dpkg-divert --package $package_name --rename --remove /usr/bin/plasma dpkg-divert --package $package_name --rename --remove /usr/bin/plasma
fi fi
fi
divert=`dpkg-divert --listpackage "/usr/bin/plasma-desktop"` divert=`dpkg-divert --listpackage "/usr/bin/plasma-desktop"`
if [ -n "$divert" ]; then if [ -n "$divert" ]; then
if [ "$divert" = "LOCAL" ]; then
dpkg-divert --local --rename --remove /usr/bin/plasma-desktop
else
dpkg-divert --package $package_name --rename --remove /usr/bin/plasma-desktop dpkg-divert --package $package_name --rename --remove /usr/bin/plasma-desktop
fi fi
fi
mkdir -p /usr/share/autostart mkdir -p /usr/share/autostart
;; ;;

@ -8,12 +8,20 @@ case "$1" in
# Remove old-style Plasma diversions # Remove old-style Plasma diversions
divert=`dpkg-divert --listpackage "/usr/bin/plasma"` divert=`dpkg-divert --listpackage "/usr/bin/plasma"`
if [ -n "$divert" ]; then if [ -n "$divert" ]; then
if [ "$divert" = "LOCAL" ]; then
dpkg-divert --local --rename --remove /usr/bin/plasma
else
dpkg-divert --package $package_name --rename --remove /usr/bin/plasma dpkg-divert --package $package_name --rename --remove /usr/bin/plasma
fi fi
fi
divert=`dpkg-divert --listpackage "/usr/bin/plasma-desktop"` divert=`dpkg-divert --listpackage "/usr/bin/plasma-desktop"`
if [ -n "$divert" ]; then if [ -n "$divert" ]; then
if [ "$divert" = "LOCAL" ]; then
dpkg-divert --local --rename --remove /usr/bin/plasma-desktop
else
dpkg-divert --package $package_name --rename --remove /usr/bin/plasma-desktop dpkg-divert --package $package_name --rename --remove /usr/bin/plasma-desktop
fi fi
fi
mkdir -p /usr/share/autostart mkdir -p /usr/share/autostart
;; ;;

Loading…
Cancel
Save