aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Iurt/Chroot.pm
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2020-06-14 20:42:29 +0000
committerPascal Terjan <pterjan@mageia.org>2020-06-14 21:06:24 +0000
commitb51b9f16dbde7aacec457c3d0a4f51f635f333e8 (patch)
tree62930b33d29b8cbc321d6a7744c4f409bcb1676e /lib/Iurt/Chroot.pm
parent737ba9fcc005cf9dbb88775373718723b35a73fc (diff)
downloadiurt-b51b9f16dbde7aacec457c3d0a4f51f635f333e8.tar
iurt-b51b9f16dbde7aacec457c3d0a4f51f635f333e8.tar.gz
iurt-b51b9f16dbde7aacec457c3d0a4f51f635f333e8.tar.bz2
iurt-b51b9f16dbde7aacec457c3d0a4f51f635f333e8.tar.xz
iurt-b51b9f16dbde7aacec457c3d0a4f51f635f333e8.zip
Update packages after creating chroot
This is useful when building for updates_testing or with additional media as basesystem/urpmi/... were installed without those media.
Diffstat (limited to 'lib/Iurt/Chroot.pm')
-rw-r--r--lib/Iurt/Chroot.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Iurt/Chroot.pm b/lib/Iurt/Chroot.pm
index 85b06c4..f0cf512 100644
--- a/lib/Iurt/Chroot.pm
+++ b/lib/Iurt/Chroot.pm
@@ -102,6 +102,11 @@ 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;
}