From da4d4923392c00a6787015b0df2602a8cd8ea887 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 11 Jun 2011 19:52:45 +0200 Subject: [PATCH] installer.kmdr: add a check on .installer.conf to avoid running installer script multiple time when window is minimized and reshown installer.sh: fix a return -1 causing a syntax error --- installer/installer.kmdr | 136 ++++++++++++++++++++------------------- installer/installer.sh | 4 +- installer/po/es.po | 4 +- installer/po/it.po | 8 +-- 4 files changed, 78 insertions(+), 74 deletions(-) diff --git a/installer/installer.kmdr b/installer/installer.kmdr index 1df4d02..512ec3c 100755 --- a/installer/installer.kmdr +++ b/installer/installer.kmdr @@ -302,7 +302,7 @@ - Copyright (c) 2007-2010 by Silvan Calarco + Copyright (c) 2007-2011 by Silvan Calarco Released under the terms of the GNU GPL v3 license @@ -399,6 +399,26 @@ Released under the terms of the GNU GPL v3 license + + + integrityCheckLabel + + + + 10 + 20 + 540 + 70 + + + + Please wait some time while the installation medium is checked for data integrity. +Press the skip button only if you have previously checked the medium on this computer. + + + WordBreak|AlignVCenter + + skipButton @@ -425,26 +445,6 @@ killall md5progress.sh - - - integrityCheckLabel - - - - 10 - 20 - 540 - 70 - - - - Please wait some time while the installation medium is checked for data integrity. -Press the skip button only if you have previously checked the medium on this computer. - - - WordBreak|AlignVCenter - - launchMD5script @@ -2998,6 +2998,9 @@ fi @chainloadbox.clear @setBootableCheckbox.execute() @execBegin +conffile=~/.installer.conf +[ -e $conffile ] && mv ${conffile} ${conffile}~ + installdevice=@String.section(@devicesbox.item(@devicesbox.currentItem)," ",0) volumes=`hal-find-by-capability --capability volume` partlabel= @@ -3097,6 +3100,30 @@ Installation time may vary but it is typically within 5 and 20 minutes. WordBreak|AlignTop + + + installTopLabel + + + + 70 + 0 + 490 + 50 + + + + + 16 + + + + Installation in progress... + + + AlignCenter + + ProgressGroupBox @@ -3175,27 +3202,6 @@ Installation time may vary but it is typically within 5 and 20 minutes. - - - progressBar - - - - 16 - 35 - 530 - 41 - - - - 100 - - - - - - - progressText @@ -3228,6 +3234,27 @@ Installation time may vary but it is typically within 5 and 20 minutes. AlignTop + + + progressBar + + + + 16 + 35 + 530 + 41 + + + + 100 + + + + + + + launchinstall @@ -3245,6 +3272,7 @@ Installation time may vary but it is typically within 5 and 20 minutes. @NextBox.setChecked(false) @execBegin conffile=~/.installer.conf +[ -e $conffile ] && return cat > $conffile << _EOF # # openmamba installation file @@ -3310,30 +3338,6 @@ fi - - - installTopLabel - - - - 70 - 0 - 490 - 50 - - - - - 16 - - - - Installation in progress... - - - AlignCenter - - diff --git a/installer/installer.sh b/installer/installer.sh index 0fed3e9..b3c5a08 100755 --- a/installer/installer.sh +++ b/installer/installer.sh @@ -130,7 +130,7 @@ function find_driver_for_udi() { echo $found_driver return 0 else - return -1 + return 1 fi } @@ -138,7 +138,7 @@ DCOPID=$2 echo $"\ openmamba installation script - version $VERSION -Copyright (c) 2007-2010 by Silvan Calarco +Copyright (c) 2007-2011 by Silvan Calarco " dcop_write $"Starting installation..." 5 diff --git a/installer/po/es.po b/installer/po/es.po index 2937d3e..867bae7 100644 --- a/installer/po/es.po +++ b/installer/po/es.po @@ -50,9 +50,9 @@ msgstr "" #: _from_rc.cc:12 msgid "" -"Copyright (c) 2007-2010 by Silvan Calarco\n" +"Copyright (c) 2007-2011 by Silvan Calarco\n" "Released under the terms of the GNU GPL v3 license" -msgstr "Copyright (c) 2007-2010 by Silvan Calarco\n" +msgstr "Copyright (c) 2007-2011 by Silvan Calarco\n" "Expedido segĂșn los tĂ©rminos de la licencia GNU GPL v3" #: _from_rc.cc:14 diff --git a/installer/po/it.po b/installer/po/it.po index 53b1441..cc1cf30 100644 --- a/installer/po/it.po +++ b/installer/po/it.po @@ -49,9 +49,9 @@ msgstr "" #: _from_rc.cc:12 msgid "" -"Copyright (c) 2007-2010 by Silvan Calarco\n" +"Copyright (c) 2007-2011 by Silvan Calarco\n" "Released under the terms of the GNU GPL v3 license" -msgstr "Copyright (c) 2007-2010 by Silvan Calarco\n" +msgstr "Copyright (c) 2007-2011 by Silvan Calarco\n" "Rilasciato secondo i termini della licenza GNU GPL v3" #: _from_rc.cc:14 @@ -590,11 +590,11 @@ msgstr " l'operazione." #: installer.sh:113 msgid "" "openmamba installation script - version $VERSION\n" -"Copyright (c) 2007-2010 by Silvan Calarco \n" +"Copyright (c) 2007-2011 by Silvan Calarco \n" "" msgstr "" "script di installazione di openmamba - versione $VERSION\n" -"Copyright (c) 2007-2010 by Silvan Calarco \n" +"Copyright (c) 2007-2011 by Silvan Calarco \n" "" #: installer.sh:118 msgid "Starting installation..."