summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2018-08-27 11:44:01 +0100
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2018-08-27 11:44:01 +0100
commit38a839cd37853514fb58cd0a8b7f1699244ebcc2 (patch)
tree031669f86ebf8e850cba0f55d4e5ea07ebf8daff
parent76f1310756cab247fd9200872172f5625ed3b28f (diff)
downloaddrakiso-38a839cd37853514fb58cd0a8b7f1699244ebcc2.tar
drakiso-38a839cd37853514fb58cd0a8b7f1699244ebcc2.tar.gz
drakiso-38a839cd37853514fb58cd0a8b7f1699244ebcc2.tar.bz2
drakiso-38a839cd37853514fb58cd0a8b7f1699244ebcc2.tar.xz
drakiso-38a839cd37853514fb58cd0a8b7f1699244ebcc2.zip
drakclassic: copy package index file into dist directory.
-rw-r--r--lib/MGA/DrakISO/BuildMedia.pm10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/MGA/DrakISO/BuildMedia.pm b/lib/MGA/DrakISO/BuildMedia.pm
index 31f4298..1e545b9 100644
--- a/lib/MGA/DrakISO/BuildMedia.pm
+++ b/lib/MGA/DrakISO/BuildMedia.pm
@@ -102,12 +102,14 @@ sub prepare_media {
check_installer_media($build, ${$build->{repo}{classes}}[0]);
check_installer_media($build, '*');
- my $arch = $build->{settings}{arch};
-
- my $arch_dir = $build->get_build_dir('files/' . $arch);
+ my $arch_dir = $build->get_build_dir('files/' . $build->{settings}{arch});
create_product_id($build, $arch_dir . '/product.id');
- create_index($build, $arch_dir . '/package.idx');
+
+ my $package_idx = $arch_dir . '/package.idx';
+
+ create_index($build, $package_idx);
+ copy_or_link($package_idx, $build->get_build_dir('dist/') . $build->get_name . '.idx');
# We don't expect this function to be called twice, but clean up
# nonetheless.