aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-06-22 14:29:08 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-06-22 14:29:08 +0000
commitaf6f5e88a114a8e4f022534e9edf12c69cc80501 (patch)
treecf9fbc9f321856f26da7666f467a8e9f329de847
parent2533f21b266826d1ed610e623f16d45b26184dd4 (diff)
downloadrpmtools-af6f5e88a114a8e4f022534e9edf12c69cc80501.tar
rpmtools-af6f5e88a114a8e4f022534e9edf12c69cc80501.tar.gz
rpmtools-af6f5e88a114a8e4f022534e9edf12c69cc80501.tar.bz2
rpmtools-af6f5e88a114a8e4f022534e9edf12c69cc80501.tar.xz
rpmtools-af6f5e88a114a8e4f022534e9edf12c69cc80501.zip
do generate global MD5SUM (in media/media_info)
-rwxr-xr-xgendistrib9
1 files changed, 9 insertions, 0 deletions
diff --git a/gendistrib b/gendistrib
index 843424c..5ce91e3 100755
--- a/gendistrib
+++ b/gendistrib
@@ -171,6 +171,15 @@ if (grep { ! $_->{noneedrebuild} } @hdlists) {
}
}
if (grep { ! ($_->{noneedrebuild} && $_->{noneedredomd5}) } @hdlists) {
+ unlink "$destinfodir/MD5SUM"; #- safety cleaning
+ unless ($nomd5sum) {
+ # this MD5SUM is mostly obsolete, but is still needed up to 2007.1
+ # (and even on cooker for existing urpmi.cfg)
+ my $md5sum = `cd $destinfodir ; /usr/bin/md5sum hdlist_* synthesis*`;
+ open my $md5sumfh, '>', "$destinfodir/MD5SUM" or die "Can't create $destinfodir/MD5SUM: $!\n";
+ print $md5sumfh $md5sum;
+ }
+
print STDERR "Calculating size of medias\n" unless $nooutput;
foreach my $e (@hdlists) {
my $size = 0;