From ade7d52967159069bc0f80ea6c798ce3d1afa082 Mon Sep 17 00:00:00 2001 From: Arnaud Patard Date: Fri, 14 Dec 2012 11:21:43 +0000 Subject: - fix check_chroot_need_update which was always telling to rebuild the chroot, due to urpmi not being able to write to $urpmi_root/tmp some temp files (thus returning an empty package list). --- lib/Iurt/Chroot.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Iurt/Chroot.pm b/lib/Iurt/Chroot.pm index 447ef23..a3f314c 100644 --- a/lib/Iurt/Chroot.pm +++ b/lib/Iurt/Chroot.pm @@ -278,6 +278,7 @@ sub check_chroot_need_update { my ($tmp_chroot, $run) = @_; my $tmp_urpmi = mktemp("$tmp_chroot/tmp.XXXXXX"); + mkdir_p("$tmp_urpmi/tmp"); my @installed_pkgs = grep { !/^gpg-pubkey/ } chomp_(cat_("$tmp_chroot/var/log/qa")); my @available_pkgs = chomp_(`urpmq --urpmi-root $tmp_urpmi --use-distrib $run->{urpmi}{distrib_url} --list -f 2>/dev/null`); my @removed_pkgs = difference2(\@installed_pkgs, \@available_pkgs); -- cgit v1.2.1