Ignore:
Timestamp:
Jun 6, 2017, 2:48:45 PM (3 years ago)
Author:
jrpelegrina
Message:

WIP in fix some bugs in zero-center

File:
1 edited

Legend:

Unmodified
Added
Removed
  • zero-center/trunk/fuentes/install-files/usr/bin/zero-reinstall-list

    r2108 r5095  
    22export TEXTDOMAIN="zero-center"
    33
    4 MSG_REVIEW1=$(gettext "Some packages aren\'t in your repositories, and they aren\'t installed, you can see it in")
     4MSG_REVIEW1=$(gettext "Some packages aren't in your repositories, and they aren't installed, you can see it in")
    55MSG_REVIEW2=$(gettext "Please review your repositories and reinstall it again .")
    6 MSG_CONTACT=$(gettext "If you can\'t resolve the problem please contact with Lliurex Team at http://mestreacasa.gva.es/web/lliurex/forums")
     6MSG_CONTACT=$(gettext "If you can't resolve the problem please contact with Lliurex Team at http://mestreacasa.gva.es/web/lliurex/forums")
    77MSG_REMOVED=$(gettext "Removed")
    88MSG_FINISH_INSTALLED=$(gettext "has been INSTALLED in your system, and you can view the log in")
    99MSG_FINISH_SYSTEM1=$(gettext "has been")
    1010MSG_FINISH_SYSTEM=$(gettext "in your system, and you can view the log in")
    11 
     11MSG_BUTTON_OK=$(gettext "OK")
    1212
    1313
     
    2323INSTALL_LOG="/tmp/zero-${NAME_FILE}.log"
    2424
     25ZEN_BUTTON_OK="--ok-label=$MSG_BUTTON_OK"
     26
     27ERROR=1
    2528
    2629####FUNCIONES
     
    113116
    114117#Ponemos el nombre si no fue especificado en la llamada al comando     
    115 if [ "$PACKAGE_NAME" == " " ]; then
     118#if [ "$PACKAGE_NAME" == " " ]; then
     119if [ -z "$PACKAGE_NAME" ]; then
    116120        PACKAGE_NAME=$(echo "$PACKAGE_LIST" | rev | cut -d "/" -f1 | rev)
    117121fi
     
    130134fgrep "is not in repository" "$INSTALL_LOG"
    131135if  [ "$?" == "0" -o "$ERROR" -gt 0 ]; then
    132         zenity --info --title="Zero-reinstaller" --text="$MSG_REVIEW1 $INSTALL_LOG. $MSG_REVIEW2 .$MSG_CONTACT" > /dev/null 2>&1 &
     136        zenity --info --title="Zero-reinstaller" --text="$MSG_REVIEW1 $INSTALL_LOG. $MSG_REVIEW2 .$MSG_CONTACT" ZEN_BUTTON_OK > /dev/null 2>&1 &
    133137        exit 1
    134138else
    135         zenity --info --title="Zero-reinstaller" --text="$PACKAGE_NAME $MSG_FINISH_INSTALLED $INSTALL_LOG" > /dev/null 2>&1 &
     139        zenity --info --title="Zero-reinstaller" --text="$PACKAGE_NAME $MSG_FINISH_INSTALLED $INSTALL_LOG" ZEN_BUTTON_OK > /dev/null 2>&1 &
    136140fi
    137141
Note: See TracChangeset for help on using the changeset viewer.