diff options
author | Pascal Terjan <pterjan@mageia.org> | 2012-04-03 23:29:50 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mageia.org> | 2012-04-03 23:29:50 +0000 |
commit | f9eacfa91548bbca696c78883cb939f767a7b43a (patch) | |
tree | 1ecc48851119b4c0f4744f4b3da1602c68b0241b /lib/Iurt/Chroot.pm | |
parent | bd1ab3f2bf46d65e716bc64db002703fc846dd0c (diff) | |
download | iurt-f9eacfa91548bbca696c78883cb939f767a7b43a.tar iurt-f9eacfa91548bbca696c78883cb939f767a7b43a.tar.gz iurt-f9eacfa91548bbca696c78883cb939f767a7b43a.tar.bz2 iurt-f9eacfa91548bbca696c78883cb939f767a7b43a.tar.xz iurt-f9eacfa91548bbca696c78883cb939f767a7b43a.zip |
Drop check_build_chroot, its only goal is to force rebuilding tarball even if no package has changed over 7 days
Also, do not recreate chroot from Urpmi.pm
Diffstat (limited to 'lib/Iurt/Chroot.pm')
-rw-r--r-- | lib/Iurt/Chroot.pm | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/Iurt/Chroot.pm b/lib/Iurt/Chroot.pm index 01cd514..32232a3 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_build_chroot ); my $sudo = '/usr/bin/sudo'; @@ -409,18 +408,4 @@ sub build_chroot { 1; } -sub check_build_chroot { - my ($chroot, $chroot_tar, $run, $config) = @_; - - plog('DEBUG', "checking basesystem tar"); - - my (@stat) = stat $chroot_tar; - - if (time -$stat[9] > 604800) { - plog('WARN', "chroot tarball too old, force rebuild"); - sudo($config, '--rm', '-r', $chroot, $chroot_tar); - } - create_build_chroot($chroot, $chroot_tar, $run, $config); -} - 1; |