diff options
author | Olivier Blin <blino@mageia.org> | 2011-05-27 21:53:54 +0000 |
---|---|---|
committer | Olivier Blin <blino@mageia.org> | 2011-05-27 21:53:54 +0000 |
commit | dad87526732d396e8072539f518e7627b4968554 (patch) | |
tree | 5015dfd02ebe72d6bf0f56e7bdd973120394fa19 /draklive | |
parent | 29cb84b3461f09f4476c4422292e40b4ec5f05a0 (diff) | |
download | drakiso-dad87526732d396e8072539f518e7627b4968554.tar drakiso-dad87526732d396e8072539f518e7627b4968554.tar.gz drakiso-dad87526732d396e8072539f518e7627b4968554.tar.bz2 drakiso-dad87526732d396e8072539f518e7627b4968554.tar.xz drakiso-dad87526732d396e8072539f518e7627b4968554.zip |
link iso image with -<set> prefix if live->{settings}{set} is defined
Diffstat (limited to 'draklive')
-rwxr-xr-x | draklive | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -746,6 +746,13 @@ sub build_iso_image { run_('mgaiso-addmd5', '>', '/dev/null', '2>', '/dev/null', $dest); run_({ chdir => $dir }, 'md5sum', '>', $dest . '.md5', $filename); run_({ chdir => $dir }, 'sha1sum', '>', $dest . '.sha1', $filename); + if (my $suffix = $live->get_set_suffix) { + if (my ($prefix, $ext) = $dest =~ /(.*)(\.[^.]+)$/) { + my $link = $prefix . $suffix . $ext; + linkf($dest, $link); + print "linked as $link\n"; + } + } } } |