From fcb98b61d1b6c455d61182e112ecd841b85026c9 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 30 Sep 2008 14:41:45 +0000 Subject: - gendistrib: o don't call genhdlist2 with --no-md5sum for no good reason --- gendistrib | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'gendistrib') diff --git a/gendistrib b/gendistrib index 765ae14..501fd9e 100755 --- a/gendistrib +++ b/gendistrib @@ -105,7 +105,6 @@ foreach my $m ($distrib->listmedia) { synthesis => "$path/media_info/synthesis.hdlist.cz", pubkey => "$path/media_info/pubkey", noneedrebuild => $blind ? 0 : $distrib->check_index_sync($m, 'formedia'), - noneedredomd5 => $blind ? 0 : $distrib->check_media_md5($m), }; } @@ -145,7 +144,7 @@ foreach my $e (grep { !$_->{noneedrebuild} } @hdlists) { '--allow-empty-media', $nooutput ? '--quiet' : (), $nobadrpm ? '--no-bad-rpm' : (), - $nomd5sum || $e->{noneedredomd5} ? "--no-md5sum" : (), + $nomd5sum ? "--no-md5sum" : (), $distrib->getvalue($e->{media}, 'xml-info') ? '--xml-info' : (), -e $file_deps ? "--file-deps $file_deps" : (), ); @@ -173,7 +172,7 @@ if (grep { ! $_->{noneedrebuild} } @hdlists) { } } } -if (grep { ! ($_->{noneedrebuild} && $_->{noneedredomd5}) } @hdlists) { +if (grep { !$_->{noneedrebuild} } @hdlists) { unlink "$destinfodir/MD5SUM"; #- safety cleaning unless ($nomd5sum) { # this MD5SUM is mostly obsolete, but is still needed up to 2007.1 -- cgit v1.2.1