Преглед на файлове

Added a sleep 1 to give progressbar.sh time to open the pipe.

Sun appear have changed the generated .bin for java installs, fix code to hax information them!
(The previous quick commit fixes issue 3505)
Fixes issue 3506
Fixes issue 3507
Fixes issue 3508

Change-Id: I9161df477409782995041ad12a96debf0bec4e6e
Reviewed-on: http://gerrit.dmdirc.com/494
Automatic-Compile: DMDirc Local Commits <devs-public@dmdirc.com>
Reviewed-by: Chris Smith <chris@dmdirc.com>
tags/0.6.3b1
Shane Mc Cormack преди 14 години
родител
ревизия
d636412333
променени са 3 файла, в които са добавени 6 реда и са изтрити 5 реда
  1. 1
    0
      installer/linux/getjre.sh
  2. 3
    3
      installer/linux/installjre.sh
  3. 2
    2
      installer/linux/progressbar.sh

+ 1
- 0
installer/linux/getjre.sh Целия файл

@@ -120,6 +120,7 @@ if [ $result -eq 0 ]; then
120 120
 		wgetpid=${!}
121 121
 	fi;
122 122
 	/bin/sh ${PWD}/progressbar.sh "Downloading JRE.." ${actualLength} ${PIPE} ${wgetpid} &
123
+	sleep 1;
123 124
 	progressbarpid=${!}
124 125
 	while [ `ps -p ${wgetpid} | wc -l` = 2 ]; do
125 126
 		SIZE=`ls -l jre.bin | awk '{print $5}'`

+ 3
- 3
installer/linux/installjre.sh Целия файл

@@ -85,7 +85,7 @@ showLicense() {
85 85
 		STARTLINE=$((${STARTLINE%%:*} + 1))
86 86
 		# Location of license end
87 87
 		ENDLINE=`grep ${GREPOPTS} "Do you agree to the above license terms?" jre.bin`
88
-		ENDLINE=$((${ENDLINE%%:*} - 2))
88
+		ENDLINE=$((${ENDLINE%%:*} - 4))
89 89
 		
90 90
 		head -n ${ENDLINE} jre.bin | tail ${TAILOPTS}${STARTLINE} > ${FILE}
91 91
 	fi;
@@ -160,8 +160,8 @@ if [ $? -eq 0 ]; then
160 160
 			STARTLINE=`grep ${GREPOPTS} "^more <<\"EOF\"$" jre.bin`
161 161
 			STARTLINE=${STARTLINE%%:*}
162 162
 			# Location of license end
163
-			ENDLINE=`grep ${GREPOPTS} "If you don't agree to the license you can't install this software" jre.bin`
164
-			ENDLINE=$((${ENDLINE%%:*} + 3))
163
+			ENDLINE=`grep ${GREPOPTS} "Do you agree to the above license terms?" jre.bin`
164
+			ENDLINE=$((${ENDLINE%%:*} - 4))
165 165
 			# Location of checksum start
166 166
 			CSSTARTLINE=`grep ${GREPOPTS} "^if \[ -x /usr/bin/sum \]; then$" jre.bin`
167 167
 			CSSTARTLINE=${CSSTARTLINE%%:*}

+ 2
- 2
installer/linux/progressbar.sh Целия файл

@@ -117,9 +117,9 @@ readprogress() {
117 117
 			if [ "${KDETYPE}" = "dcop" ]; then
118 118
 				wasCancelled=`${DCOP} ${progresswindow} wasCancelled`;
119 119
 			elif [ "${KDETYPE}" = "qdbus" ]; then
120
-				wasCancelled=` ${QDBUS} ${progresswindow} org.kde.kdialog.ProgressDialog.wasCancelled`;
120
+				wasCancelled=`${QDBUS} ${progresswindow} org.kde.kdialog.ProgressDialog.wasCancelled`;
121 121
 			elif [ "${KDETYPE}" = "dbussend" ]; then
122
-				wasCancelled=` ${DBUSSEND} --print-reply --dest=${progresswindow} org.kde.kdialog.ProgressDialog.wasCancelled | grep boolean | awk '{print $2}'`;
122
+				wasCancelled=`${DBUSSEND} --print-reply --dest=${progresswindow} org.kde.kdialog.ProgressDialog.wasCancelled | grep boolean | awk '{print $2}'`;
123 123
 			fi
124 124
 			if [ "${wasCancelled}" = "true" ]; then
125 125
 				break;

Loading…
Отказ
Запис