aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2020-06-15 18:40:39 +0000
committerPascal Terjan <pterjan@mageia.org>2020-06-15 18:40:39 +0000
commitfe9d5b05cada63b4aa30b71401456263a3b511f1 (patch)
treeaf0898e63149f9407a76f5fda4d23e5ff3bb546b /lib
parent5f41a76305fb8282f5daa920466add4316900ade (diff)
downloadiurt-fe9d5b05cada63b4aa30b71401456263a3b511f1.tar
iurt-fe9d5b05cada63b4aa30b71401456263a3b511f1.tar.gz
iurt-fe9d5b05cada63b4aa30b71401456263a3b511f1.tar.bz2
iurt-fe9d5b05cada63b4aa30b71401456263a3b511f1.tar.xz
iurt-fe9d5b05cada63b4aa30b71401456263a3b511f1.zip
Move updating the chroot to the right place
Diffstat (limited to 'lib')
-rw-r--r--lib/Iurt/Chroot.pm10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Iurt/Chroot.pm b/lib/Iurt/Chroot.pm
index f0cf512..86ada27 100644
--- a/lib/Iurt/Chroot.pm
+++ b/lib/Iurt/Chroot.pm
@@ -102,11 +102,6 @@ sub clean_and_build_chroot {
}
}
- # We may have media not used to create the chroot (when building for updates_testing
- # or if using additional_media) so need to update basesystem packages.
- my $urpmi = $run->{urpmi};
- $urpmi->update($chroot);
-
1;
}
@@ -322,6 +317,11 @@ sub create_build_chroot {
}
}
+ # We may have media not used to create the chroot (when building for updates_testing
+ # or if using additional_media) so need to update basesystem packages.
+ my $urpmi = $run->{urpmi};
+ $urpmi->update($chroot);
+
if ($ret && $use_netns) {
sudo($config, '--netns_create', $chroot);
}