diff options
-rwxr-xr-x | iurt2 | 2 | ||||
-rwxr-xr-x | ulri | 3 |
2 files changed, 4 insertions, 1 deletions
@@ -37,7 +37,7 @@ use Iurt::Config qw(config_usage get_date get_prefix config_init dump_cache_par use Data::Dumper; use URPM; use Iurt::DKMS; -use lib '/home/iurt/'; + use Iurt::Urpmi; use Iurt::Chroot qw(add_local_user create_temp_chroot remove_chroot clean_unionfs clean_all_unionfs clean_all_chroot_tmp check_build_chroot clean_chroot); use Iurt::Process qw(perform_command clean kill_for_good sudo); @@ -668,6 +668,9 @@ foreach my $prefix (sort keys %pkg_tree) { $cmd =~ s!__DIR__!$path/$prefix!g; $cmd =~ s!__TARGET__!$target!g; $cmd =~ s!__PACKAGER__!$user!g; + my $section = $media; + $section =~ s!/.*\$!!; + $cmd =~ s!__SECTION__!$section!g; my $media_to_add; if (ref $config->{media}{$target}{$media}) { |