diff options
Diffstat (limited to 'lib/MGA/DrakISO')
-rw-r--r-- | lib/MGA/DrakISO/BuildMedia.pm | 10 |
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. |