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

fixing prerms and diversions

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

Legend:

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

    r2338 r2342  
    1111
    1212
    13         ORIGINAL_WHISKER_ES_FILE="/usr/share/locale/es/LC_MESSAGES/xfce4-whiskermenu-plugin.mo"
     13        ORIGINAL_WHISKER_ES_FILE="/usr/share/locale/es/LC_MESSAGES/xfce4-whiskermenu-plugin.mo"
    1414        NEW_DIVERTED_ES_FILE="/usr/share/locale/es/LC_MESSAGES/xfce4-whiskermenu-plugin.diverted"
     15        LLIUREX_ES_FILE="/usr/share/lliurex-artwork-defaults/whiskermenu/locale/es/xfce4-whiskermenu-plugin.mo"
    1516
    1617        ORIGINAL_WHISKER_CA_FILE="/usr/share/locale/ca/LC_MESSAGES/xfce4-whiskermenu-plugin.mo"
    1718        NEW_DIVERTED_CA_FILE="/usr/share/locale/ca/LC_MESSAGES/xfce4-whiskermenu-plugin.diverted"
     19        LLIUREX_CA_FILE="/usr/share/lliurex-artwork-defaults/whiskermenu/locale/ca/xfce4-whiskermenu-plugin.mo"
    1820
    19         dpkg-divert --remove --package ${PKG} --rename --divert "$NEW_DIVERTED_ES_FILE" "$ORIGINAL_WHISKER_ES_FILE"
    20         dpkg-divert --remove --package ${PKG} --rename --divert "$NEW_DIVERTED_CA_FILE" "$ORIGINAL_WHISKER_CA_FILE"
     21        if [ -f "$NEW_DIVERTED_ES_FILE" ]; then
     22                rm -rf $ORIGINAL_WHISKER_ES_FILE || true
     23                dpkg-divert --remove --package ${PKG} --rename --divert "$NEW_DIVERTED_ES_FILE" "$ORIGINAL_WHISKER_ES_FILE"
     24
     25        fi
     26
     27        if [ -f "$NEW_DIVERTED_CA_FILE" ]; then
     28
     29                rm -rf $ORIGINAL_WHISKER_CA_FILE || true
     30                dpkg-divert --remove --package ${PKG} --rename --divert "$NEW_DIVERTED_CA_FILE" "$ORIGINAL_WHISKER_CA_FILE"
     31
     32        fi
    2133
    2234        update-alternatives \
  • lliurex-artwork-defaults/trunk/fuentes/debian/lliurex-artwork-defaults-music.prerm

    r2341 r2342  
    44
    55
    6 if [ "$1" = remove ] ; then
     6if [ "$1" = "remove" ] ; then
    77
    88        update-alternatives \
Note: See TracChangeset for help on using the changeset viewer.