Changeset 2341


Ignore:
Timestamp:
Aug 29, 2016, 1:06:19 PM (3 years ago)
Author:
hectorgh
Message:

wip on new diversions

Location:
lliurex-artwork-defaults/trunk/fuentes/debian
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • lliurex-artwork-defaults/trunk/fuentes/debian/lliurex-artwork-defaults-client.prerm

    r2169 r2341  
    44
    55
    6 if [ "$1" = "remove" ] ; then
    7        
    8         # DO NOTHING
    9 
    10 
    11 
    12 fi
    136#DEBHELPER#
    147
  • lliurex-artwork-defaults/trunk/fuentes/debian/lliurex-artwork-defaults-desktop.postinst

    r2338 r2341  
    2828        ORIGINAL_WHISKER_ES_FILE="/usr/share/locale/es/LC_MESSAGES/xfce4-whiskermenu-plugin.mo"
    2929        NEW_DIVERTED_ES_FILE="/usr/share/locale/es/LC_MESSAGES/xfce4-whiskermenu-plugin.diverted"
     30        LLIUREX_ES_FILE="/usr/share/lliurex-artwork-defaults/whiskermenu/locale/es/xfce4-whiskermenu-plugin.mo"
    3031
    3132        ORIGINAL_WHISKER_CA_FILE="/usr/share/locale/ca/LC_MESSAGES/xfce4-whiskermenu-plugin.mo"
    3233        NEW_DIVERTED_CA_FILE="/usr/share/locale/ca/LC_MESSAGES/xfce4-whiskermenu-plugin.diverted"
     34        LLIUREX_CA_FILE="/usr/share/lliurex-artwork-defaults/whiskermenu/locale/ca/xfce4-whiskermenu-plugin.mo"
    3335
    34         dpkg-divert --add --package ${PKG} --rename --divert "$NEW_DIVERTED_ES_FILE" "$ORIGINAL_WHISKER_ES_FILE"
    35         dpkg-divert --add --package ${PKG} --rename --divert "$NEW_DIVERTED_CA_FILE" "$ORIGINAL_WHISKER_CA_FILE"
     36        if [ -f "$ORIGINAL_WHISKER_ES_FILE" ]; then
     37
     38                dpkg-divert --add --package ${PKG} --rename --divert "$NEW_DIVERTED_ES_FILE" "$ORIGINAL_WHISKER_ES_FILE"
     39                ln -s "$LLIUREX_ES_FILE" "$ORIGINAL_WHISKER_ES_FILE"
     40
     41        fi
     42
     43          if [ -f "$ORIGINAL_WHISKER_CA_FILE" ]; then
     44
     45                dpkg-divert --add --package ${PKG} --rename --divert "$NEW_DIVERTED_CA_FILE" "$ORIGINAL_WHISKER_CA_FILE"
     46                ln -s "$LLIUREX_CA_FILE" "$ORIGINAL_WHISKER_CA_FILE"
     47
     48        fi
     49
    3650
    3751       
  • lliurex-artwork-defaults/trunk/fuentes/debian/lliurex-artwork-defaults-music.prerm

    r2298 r2341  
    55
    66if [ "$1" = remove ] ; then
    7         PKG="lliurex-artwork-defaults-desktop"
    8         ORIGINAL_UNITY_FILE="/usr/share/xsessions/xubuntu.desktop"
    9         NEW_DIVERTED_FILE="/usr/share/diverted-sessions/xubuntu.desktop"
    10         dpkg-divert --remove --package ${PKG} --rename --divert "$NEW_DIVERTED_FILE" "$ORIGINAL_UNITY_FILE"
    11 
    12 
    13         ORIGINAL_UNITY_FILE="/usr/share/xsessions/xfce.desktop"
    14         NEW_DIVERTED_FILE="/usr/share/diverted-sessions/xfce.desktop"
    15         dpkg-divert --remove --package ${PKG} --rename --divert "$NEW_DIVERTED_FILE" "$ORIGINAL_UNITY_FILE"
    16 
    177
    188        update-alternatives \
Note: See TracChangeset for help on using the changeset viewer.