From 0bc3c7920fb35e22870142ceffdce65458f3b133 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Tue, 3 Apr 2012 23:01:59 +0000 Subject: Drop check_chroot --- lib/Iurt/Chroot.pm | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/lib/Iurt/Chroot.pm b/lib/Iurt/Chroot.pm index 93b1363..c2a388d 100644 --- a/lib/Iurt/Chroot.pm +++ b/lib/Iurt/Chroot.pm @@ -20,7 +20,6 @@ our @EXPORT = qw( remove_chroot create_chroot create_build_chroot - check_chroot check_build_chroot ); @@ -414,13 +413,6 @@ sub build_chroot { sub check_build_chroot { my ($chroot, $chroot_tar, $run, $config) = @_; - check_chroot($chroot, $chroot_tar, $run, $config, - { packages => $config->{basesystem_packages} }); -} - -sub check_chroot { - my ($chroot, $chroot_tar, $run, $config, $opt) = @_; - plog('DEBUG', "checking basesystem tar"); my (@stat) = stat $chroot_tar; @@ -429,7 +421,7 @@ sub check_chroot { plog('WARN', "chroot tarball too old, force rebuild"); sudo($config, '--rm', '-r', $chroot, $chroot_tar); } - create_chroot($chroot, $chroot_tar, $run, $config, $opt); + create_build_chroot($chroot, $chroot_tar, $run, $config); } 1; -- cgit v1.2.1