summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <blino@mageia.org>2011-05-27 21:53:54 +0000
committerOlivier Blin <blino@mageia.org>2011-05-27 21:53:54 +0000
commitdad87526732d396e8072539f518e7627b4968554 (patch)
tree5015dfd02ebe72d6bf0f56e7bdd973120394fa19
parent29cb84b3461f09f4476c4422292e40b4ec5f05a0 (diff)
downloaddrakiso-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
-rwxr-xr-xdraklive7
1 files changed, 7 insertions, 0 deletions
diff --git a/draklive b/draklive
index 8e58d6b..cdfb826 100755
--- a/draklive
+++ b/draklive
@@ -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";
+ }
+ }
}
}