Check-in [fb2c190d20]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:al interrumpir no permite opciones invalidas
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:fb2c190d20e2caddbcf596d1903ad18ff697ac86
User & Date: suse 2016-05-15 12:22:38
Context
2016-05-15
16:17
mejora la ayuda check-in: ffbb1faccd user: suse tags: trunk
12:22
al interrumpir no permite opciones invalidas check-in: fb2c190d20 user: suse tags: trunk
12:10
opcion p al interrumpir descarga check-in: 28d6f471de user: suse tags: trunk
Changes

Changes to sync_void.

266
267
268
269
270
271
272
273
274
275
276
277




278
279
280
281

282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303

304
305
306
307
308
309
310
		if endswith $1 xbps && xz -qqt $1; then
			md5sum $1 | cut -d" " -f1 > "$1.sum"
			return 0
		fi
		return 3
	else
		while true; do
                  log "descarga de $1 ha fallado o sido interrumpida."
                  echo -n "Reintentar (r), Ignorar (i) Finalizar (q) Pausar (p)? "
                  read -n 1 -t 8 op
                  echo
                  [ "$op" = "p" ] || break




                  echo -n '[ENTER PARA REANUDAR]'
                  read
		done
		case $op in

		r)
			download "$@"
			return
			;;
		i)
			[ -e ignore ] && contents=`head -1 ignore`

			if [ "$contents" ]; then
				echo "$contents|$1" > ignore
			else
				echo "$1" > ignore
			fi

			if [ "$EDITOR" ]; then e=$EDITOR; else e=vi; fi
			$e ignore
			# indicamos que se reinicia el ciclo de descarga masiva
			return 4
			;;
		q)
			exit
			;;
		esac

		return 2
	fi
	echo
}

readignores() {
	[ -f ignore ] && _ignores=`cat ignore`







|
|
|
|
|
>
>
>
>
|
|
<
<
>
|
|
|
|
|
|

|
|
|
|
|

|
|
|
|
|
|
|
|
|
>







266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283


284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
		if endswith $1 xbps && xz -qqt $1; then
			md5sum $1 | cut -d" " -f1 > "$1.sum"
			return 0
		fi
		return 3
	else
		while true; do
			log "descarga de $1 ha fallado o sido interrumpida."
			echo -n "Reintentar (r), Ignorar (i) Finalizar (q) Pausar (p)? "
			read -n 1 -t 8 op
			echo
			case $op in
			"")
				break
				;;
			p)
				echo -n '[ENTER PARA REANUDAR]'
				read


				;;
			r)
				download "$@"
				return
				;;
			i)
				[ -e ignore ] && contents=`head -1 ignore`

				if [ "$contents" ]; then
					echo "$contents|$1" > ignore
					else
					echo "$1" > ignore
				fi

				if [ "$EDITOR" ]; then e=$EDITOR; else e=vi; fi
				$e ignore
				# indicamos que se reinicia el ciclo de descarga masiva
				return 4
				;;
			q)
				exit
				;;
			esac
		done
		return 2
	fi
	echo
}

readignores() {
	[ -f ignore ] && _ignores=`cat ignore`