diff options
author | Pascal Terjan <pterjan@mageia.org> | 2020-11-29 22:45:34 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mageia.org> | 2020-11-29 22:45:34 +0000 |
commit | 9668972049dd1f77da3afc33debdf8ed99168c69 (patch) | |
tree | 916972d8f6b0a2e5966b2f02e6bf594a0c2182a3 /lib | |
parent | 8eec3c57d960494cef6939db304a45e72f19b58d (diff) | |
download | iurt-9668972049dd1f77da3afc33debdf8ed99168c69.tar iurt-9668972049dd1f77da3afc33debdf8ed99168c69.tar.gz iurt-9668972049dd1f77da3afc33debdf8ed99168c69.tar.bz2 iurt-9668972049dd1f77da3afc33debdf8ed99168c69.tar.xz iurt-9668972049dd1f77da3afc33debdf8ed99168c69.zip |
Do not add media twice
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Iurt/Chroot.pm | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/Iurt/Chroot.pm b/lib/Iurt/Chroot.pm index 8d7fcd3..27f76c8 100644 --- a/lib/Iurt/Chroot.pm +++ b/lib/Iurt/Chroot.pm @@ -307,14 +307,6 @@ sub create_build_chroot { $ret = create_build_chroot_tar($chroot, $chroot_ref, $run, $config); } - if ($ret) { - my $urpmi = $run->{urpmi}; - if (!$urpmi->add_media__urpmi_root($chroot, $config->{base_media})) { - plog('ERROR', "urpmi.addmedia --urpmi-root failed"); - return; - } - } - if ($ret && $use_netns) { sudo($config, '--netns_create', $chroot); } |