summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-12-13 19:06:11 +0000
committerOlivier Blin <oblin@mandriva.com>2007-12-13 19:06:11 +0000
commitf9625c495ca4383cd8bb4a19e603d6ad703e4c24 (patch)
treec576ef55986ee8108a790846dd59216c8070ff5d
parentfde6a95180e1ea5133eded7295c156c65e85ef1f (diff)
downloaddrakiso-f9625c495ca4383cd8bb4a19e603d6ad703e4c24.tar
drakiso-f9625c495ca4383cd8bb4a19e603d6ad703e4c24.tar.gz
drakiso-f9625c495ca4383cd8bb4a19e603d6ad703e4c24.tar.bz2
drakiso-f9625c495ca4383cd8bb4a19e603d6ad703e4c24.tar.xz
drakiso-f9625c495ca4383cd8bb4a19e603d6ad703e4c24.zip
compute md5sum and sha1sum for ISO images (in addition to the mkcd checksum)
-rwxr-xr-xdraklive8
1 files changed, 7 insertions, 1 deletions
diff --git a/draklive b/draklive
index 01b62cc..21b1d0f 100755
--- a/draklive
+++ b/draklive
@@ -1092,7 +1092,13 @@ sub create_cdrom_master {
),
),
) or die "unable to run genisoimage\n";
- run_('mkcd', '--addmd5', $dest) if $dest;
+ if ($dest) {
+ my $dir = dirname($dest);
+ my $filename = basename($dest);
+ run_({ chdir => $dir }, 'md5sum', '>', $dest . '.md5', $filename);
+ run_({ chdir => $dir }, 'sha1sum', '>', $dest . '.sha1', $filename);
+ run_('mkcd', '--addmd5', $dest);
+ }
}
sub get_usb_master_path {