diff options
author | Olivier Blin <oblin@mandriva.com> | 2007-12-13 19:06:11 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2007-12-13 19:06:11 +0000 |
commit | f9625c495ca4383cd8bb4a19e603d6ad703e4c24 (patch) | |
tree | c576ef55986ee8108a790846dd59216c8070ff5d | |
parent | fde6a95180e1ea5133eded7295c156c65e85ef1f (diff) | |
download | drakiso-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-x | draklive | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 { |