diff options
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; } |