diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-06-22 13:35:03 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-06-22 13:35:03 +0000 |
commit | bb4107531e80cce8850dc906d9bc9b25d4e7c4cc (patch) | |
tree | 0071e6d4d2be425dd3969081c81d7d5e82c00087 /lib/Youri | |
parent | 513e7a5377b6772e944334f2b6aec9521812f889 (diff) | |
download | mga-youri-submit-bb4107531e80cce8850dc906d9bc9b25d4e7c4cc.tar mga-youri-submit-bb4107531e80cce8850dc906d9bc9b25d4e7c4cc.tar.gz mga-youri-submit-bb4107531e80cce8850dc906d9bc9b25d4e7c4cc.tar.bz2 mga-youri-submit-bb4107531e80cce8850dc906d9bc9b25d4e7c4cc.tar.xz mga-youri-submit-bb4107531e80cce8850dc906d9bc9b25d4e7c4cc.zip |
- 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
Diffstat (limited to 'lib/Youri')
-rw-r--r-- | lib/Youri/Submit/Post/Genhdlist2.pm | 23 |
1 files changed, 11 insertions, 12 deletions
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 |