From bb4107531e80cce8850dc906d9bc9b25d4e7c4cc Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 22 Jun 2007 13:35:03 +0000 Subject: - need to redo global MD5SUM. This MD5SUM is mostly obsolete, but is still needed up to 2007.1 (and needed even on cooker for existing urpmi.cfg) - don't use --blind. hopefully not needed --- lib/Youri/Submit/Post/Genhdlist2.pm | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) (limited to 'lib/Youri/Submit/Post') diff --git a/lib/Youri/Submit/Post/Genhdlist2.pm b/lib/Youri/Submit/Post/Genhdlist2.pm index c078f31..6eefd7c 100644 --- a/lib/Youri/Submit/Post/Genhdlist2.pm +++ b/lib/Youri/Submit/Post/Genhdlist2.pm @@ -36,28 +36,27 @@ sub run { croak "Not a class method" unless ref $self; my $root = $repository->get_install_root(); (undef, undef, my $hour) = gmtime(time); - # during the night, use complete hdlist rebuild - my $fast = '--fast'; - $fast = ''; # blino: don't use fast for now, it might be broken - if ($hour > 22 && $hour < 5) { - if ($hour < 4) { - $fast = '--blind' - } else { - $fast = '' - } - } my @changed = @{$repository->get_install_dir_changed($target)}; if (!@changed) { print "nothing to do\n"; + return; } foreach my $dir (@changed) { my $file_deps = "$dir/../../media_info/file-deps"; my $file_deps_option = -e $file_deps ? "--file-deps $file_deps" : ''; my $cmd = "time $self->{_command} -v --allow-empty-media $file_deps_option $dir"; print "$cmd\n"; - system($cmd); + system($cmd) == 0 or print "ERROR: $cmd failed\n"; + } + + # need to redo global MD5SUM. This MD5SUM is mostly obsolete, but is still needed up to 2007.1 + # (and even on cooker for existing urpmi.cfg) + foreach my $arch (@{$repository->get_arch_changed($target)}) { + my $cmd = "cd $root/$target/$arch/media/media_info ; time md5sum hdlist_* synthesis.* > MD5SUM"; + print "$cmd\n"; + system($cmd) == 0 or print "ERROR: $cmd failed\n"; } - return + return; } =head1 COPYRIGHT AND LICENSE -- cgit v1.2.1