diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-06-20 10:24:32 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-06-20 10:24:32 +0000 |
commit | bbb67b72977d0c04cec6108ebac0b21315cfe720 (patch) | |
tree | cd97d1c3ec5791fb87cf7d96e85c91d7ca7cc699 /genhdlist2 | |
parent | b845c764fcceca217a420832d39012faa31efcb6 (diff) | |
download | rpmtools-bbb67b72977d0c04cec6108ebac0b21315cfe720.tar rpmtools-bbb67b72977d0c04cec6108ebac0b21315cfe720.tar.gz rpmtools-bbb67b72977d0c04cec6108ebac0b21315cfe720.tar.bz2 rpmtools-bbb67b72977d0c04cec6108ebac0b21315cfe720.tar.xz rpmtools-bbb67b72977d0c04cec6108ebac0b21315cfe720.zip |
fix MD5SUM generation
Diffstat (limited to 'genhdlist2')
-rw-r--r-- | genhdlist2 | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -78,7 +78,7 @@ sub do_it { rename "$hdlist.tmp", $hdlist or die "rename $hdlist failed: $?\n"; print "replacing $synthesis with $synthesis.tmp\n" if $verbose >= 0; rename "$synthesis.tmp", $synthesis or die "ERROR: this should not happen: rename $synthesis failed\n"; - generate_md5sum($media_info_dir, $hdlist, $synthesis) if !$options{no_md5sum}; + generate_md5sum($media_info_dir) if !$options{no_md5sum}; } } @@ -194,9 +194,9 @@ sub build_synthesis { } sub generate_md5sum { - my ($media_info_dir, $hdlist, $synthesis) = @_; + my ($media_info_dir) = @_; print "updating $media_info_dir/MD5SUM\n" if $verbose >= 0; - my $m = `/usr/bin/md5sum '$hdlist' '$synthesis'`; + my $m = `cd '$media_info_dir' ; /usr/bin/md5sum hdlist.cz synthesis.hdlist.cz`; open my $f, '>', "$media_info_dir/MD5SUM" or die "Can't write MD5SUM: $!\n"; print $f $m; } |