diff options
author | Anne Nicolas <ennael@mageia.org> | 2013-12-16 01:29:30 +0100 |
---|---|---|
committer | Anne Nicolas <ennael@mageia.org> | 2013-12-16 01:29:30 +0100 |
commit | 889c0e97881ba90cc226a50777e1179b52f96b44 (patch) | |
tree | 85f5bf995d462d231d59183bb87381c408d1b78c /BCD | |
parent | 3b6c61b0067aafdaefe763f70037513f97e5b4e2 (diff) | |
download | bcd-889c0e97881ba90cc226a50777e1179b52f96b44.tar bcd-889c0e97881ba90cc226a50777e1179b52f96b44.tar.gz bcd-889c0e97881ba90cc226a50777e1179b52f96b44.tar.bz2 bcd-889c0e97881ba90cc226a50777e1179b52f96b44.tar.xz bcd-889c0e97881ba90cc226a50777e1179b52f96b44.zip |
add a warning if the iso size is too big
Diffstat (limited to 'BCD')
-rw-r--r-- | BCD/Genisoimage.pm | 4 |
1 files changed, 4 insertions, 0 deletions
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); + } } |