From 38a839cd37853514fb58cd0a8b7f1699244ebcc2 Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Mon, 27 Aug 2018 11:44:01 +0100 Subject: drakclassic: copy package index file into dist directory. --- lib/MGA/DrakISO/BuildMedia.pm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'lib/MGA/DrakISO') 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. -- cgit v1.2.1