Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 126994 | Differences between
and this patch

Collapse All | Expand All

(-)any2dvd-0.34/any2vob.orig (-3 / +3 lines)
Lines 291-297 Link Here
291
		--preformat=yes) PREFORMAT_FRC="yes"; shift ;;
291
		--preformat=yes) PREFORMAT_FRC="yes"; shift ;;
292
		--calc) shift; CALC="yes" ;;
292
		--calc) shift; CALC="yes" ;;
293
		--workdir=*) WORKDIR=`echo "$1" | sed 's/--workdir=/ /' | sed 's/^[ \t]*//'`
293
		--workdir=*) WORKDIR=`echo "$1" | sed 's/--workdir=/ /' | sed 's/^[ \t]*//'`
294
				FILESYS=`df -Th "$WORKDIR" | tail -n1 | awk '{print $2}'`
294
				FILESYS=`df -TPh "$WORKDIR" | tail -n1 | awk '{print $2}'`
295
				if [ "$FILESYS" = "vfat" ]; then
295
				if [ "$FILESYS" = "vfat" ]; then
296
					warn WARNING: Your workdir \'"$WORKDIR"\' resides on a FAT Windows partition
296
					warn WARNING: Your workdir \'"$WORKDIR"\' resides on a FAT Windows partition
297
					echo -e "\e[33;01m Be aware that this may well cause problems as there is a 2GB filesize limit\e[m"
297
					echo -e "\e[33;01m Be aware that this may well cause problems as there is a 2GB filesize limit\e[m"
Lines 984-996 Link Here
984
			echo
984
			echo
985
		fi
985
		fi
986
	fi
986
	fi
987
	DISKSPACE_AVAIL_MB=`df -Tm "$WORKDIR" | tail -n1 | awk '{print $5}'`
987
	DISKSPACE_AVAIL_MB=`df -TPm "$WORKDIR" | tail -n1 | awk '{print $5}'`
988
	DISKSPACE_AVAIL_GB=`perl -le "printf ('%.2f', $DISKSPACE_AVAIL_MB / 1024)"`
988
	DISKSPACE_AVAIL_GB=`perl -le "printf ('%.2f', $DISKSPACE_AVAIL_MB / 1024)"`
989
	DISKSPACE_NEEDED_MB=`perl -le "print int($TOTAL_SIZEMB * 2)"`
989
	DISKSPACE_NEEDED_MB=`perl -le "print int($TOTAL_SIZEMB * 2)"`
990
	DISKSPACE_NEEDED_GB=`perl -le "printf ('%.2f', $DISKSPACE_NEEDED_MB / 1024)"`
990
	DISKSPACE_NEEDED_GB=`perl -le "printf ('%.2f', $DISKSPACE_NEEDED_MB / 1024)"`
991
	[ "$ISO" != "no" ] && [ "$ANY2DVD" = "yes" ] && DISKSPACE_NEEDED_MB=`perl -le "print int($TOTAL_SIZEMB * 3)"`
991
	[ "$ISO" != "no" ] && [ "$ANY2DVD" = "yes" ] && DISKSPACE_NEEDED_MB=`perl -le "print int($TOTAL_SIZEMB * 3)"`
992
	if [ "$DISKSPACE_NEEDED_MB" -ge "$DISKSPACE_AVAIL_MB" ]; then
992
	if [ "$DISKSPACE_NEEDED_MB" -ge "$DISKSPACE_AVAIL_MB" ]; then
993
		errmsg WARNING: "Not enough diskspace available, $DISKSPACE_NEEDED_GB GB needed, but only $DISKSPACE_AVAIL_GB GB available on `df -T "$WORKDIR" | tail -n1 | awk '{print $1}'`"
993
		errmsg WARNING: "Not enough diskspace available, $DISKSPACE_NEEDED_GB GB needed, but only $DISKSPACE_AVAIL_GB GB available on `df -TP "$WORKDIR" | tail -n1 | awk '{print $1}'`"
994
		echo -en "     Are you sure you want to continue ? \033[1m(yes/no)\e[m "
994
		echo -en "     Are you sure you want to continue ? \033[1m(yes/no)\e[m "
995
		read continue
995
		read continue
996
		[ "$continue" != "yes" ] && echo -e "\nENCODING ERROR" >> $VAR_DATAFILE && exit
996
		[ "$continue" != "yes" ] && echo -e "\nENCODING ERROR" >> $VAR_DATAFILE && exit

Return to bug 126994