2010-05-22 06:25:44 +08:00
|
|
|
post_install() {
|
|
|
|
echo " "
|
|
|
|
echo " > ATTENTION:"
|
2012-02-06 04:46:15 +08:00
|
|
|
echo " > kdebase-apps is split into 4 packages:"
|
2010-05-22 06:25:44 +08:00
|
|
|
echo " "
|
2011-07-23 02:02:15 +08:00
|
|
|
echo " kde-baseapps : Base package"
|
|
|
|
echo " kde-baseapps-dolphin : The default KDE file manager"
|
|
|
|
echo " kde-baseapps-konqueror : The default KDE web browser"
|
|
|
|
echo " kde-baseapps-konq-plugins : Extra plugins for Konqueror"
|
2010-05-22 06:25:44 +08:00
|
|
|
echo " "
|
|
|
|
|
|
|
|
if [ -e "/etc/chakra/updates.conf" ] ; then
|
|
|
|
|
|
|
|
. /etc/chakra/updates.conf
|
|
|
|
|
|
|
|
if [ "$UPDATE_XDG_ICON_DB" = "yes" ]; then
|
|
|
|
/usr/bin/chakra-update-icons
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$UPDATE_GLOBAL_CONFIG" = "yes" ]; then
|
|
|
|
/usr/bin/chakra-update-sycoca
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$UPDATE_USER_CONFIG" = "yes" ]; then
|
|
|
|
/usr/bin/chakra-update-user-sycoca
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
echo " > WARNING"
|
|
|
|
echo " The package kde-common seems not to be installed,"
|
|
|
|
echo " this can possibly break the installation. Just install it"
|
|
|
|
echo " manually after this installation/update, run the following"
|
|
|
|
echo " commands and restart KDE afterwards:"
|
|
|
|
echo " sudo chakra-config-updater"
|
|
|
|
echo " kbuildsycoca4"
|
|
|
|
echo " "
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
post_upgrade() {
|
|
|
|
if [ -e "/etc/chakra/updates.conf" ] ; then
|
|
|
|
|
|
|
|
. /etc/chakra/updates.conf
|
|
|
|
|
|
|
|
if [ "$UPDATE_XDG_ICON_DB" = "yes" ]; then
|
|
|
|
/usr/bin/chakra-update-icons
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$UPDATE_GLOBAL_CONFIG" = "yes" ]; then
|
|
|
|
/usr/bin/chakra-update-sycoca
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$UPDATE_USER_CONFIG" = "yes" ]; then
|
|
|
|
/usr/bin/chakra-update-user-sycoca
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
echo " > WARNING"
|
|
|
|
echo " The package kde-common seems not to be installed,"
|
|
|
|
echo " this can possibly break the installation. Just install it"
|
|
|
|
echo " manually after this installation/update, run the following"
|
|
|
|
echo " commands and restart KDE afterwards:"
|
|
|
|
echo " sudo chakra-config-updater"
|
|
|
|
echo " kbuildsycoca4"
|
|
|
|
echo " "
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
post_remove() {
|
|
|
|
if [ -e "/etc/chakra/updates.conf" ] ; then
|
|
|
|
|
|
|
|
. /etc/chakra/updates.conf
|
|
|
|
|
|
|
|
if [ "$UPDATE_XDG_ICON_DB" = "yes" ]; then
|
|
|
|
/usr/bin/chakra-update-icons
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$UPDATE_GLOBAL_CONFIG" = "yes" ]; then
|
|
|
|
/usr/bin/chakra-update-sycoca
|
|
|
|
fi
|
2011-07-23 02:02:15 +08:00
|
|
|
|
2010-05-22 06:25:44 +08:00
|
|
|
if [ "$UPDATE_USER_CONFIG" = "yes" ]; then
|
|
|
|
/usr/bin/chakra-update-user-sycoca
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
echo " > WARNING"
|
|
|
|
echo " The package kde-common seems not to be installed,"
|
|
|
|
echo " this can possibly break the installation. Just install it"
|
|
|
|
echo " manually after this installation/update, run the following"
|
|
|
|
echo " commands and restart KDE afterwards:"
|
|
|
|
echo " sudo chakra-config-updater"
|
|
|
|
echo " kbuildsycoca4"
|
|
|
|
echo " "
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
op=$1
|
|
|
|
shift
|
|
|
|
|
|
|
|
$op $*
|