From 889c0e97881ba90cc226a50777e1179b52f96b44 Mon Sep 17 00:00:00 2001 From: Anne Nicolas Date: Mon, 16 Dec 2013 01:29:30 +0100 Subject: add a warning if the iso size is too big --- BCD/Genisoimage.pm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'BCD') diff --git a/BCD/Genisoimage.pm b/BCD/Genisoimage.pm index 2369d8d..07740a2 100644 --- a/BCD/Genisoimage.pm +++ b/BCD/Genisoimage.pm @@ -101,6 +101,10 @@ $builddir/../ system($cmd); system("du -h $isodir/$isoname.iso"); system("du -sh $builddir/install"); + my $size_iso = -s "$isodir/$isoname.iso"; + if ($size_iso > 3900338176) { + print_color("Attention la taille de l'iso est trop importante", $error_color); + } } -- cgit v1.2.1