aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xiurt22
-rwxr-xr-xulri3
2 files changed, 4 insertions, 1 deletions
diff --git a/iurt2 b/iurt2
index 5220f0d..93b95b9 100755
--- a/iurt2
+++ b/iurt2
@@ -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);
diff --git a/ulri b/ulri
index ce56a84..d6e3a45 100755
--- a/ulri
+++ b/ulri
@@ -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}) {