From 88ec1f37b6cc9236df71f15432e79f5701e96a1d Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Wed, 16 Nov 2005 13:15:16 +0000 Subject: Fix the location where the MD5SUM files are generated (thanks joeghi) --- gendistrib | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gendistrib') diff --git a/gendistrib b/gendistrib index 4354cfc..5291fb4 100755 --- a/gendistrib +++ b/gendistrib @@ -313,13 +313,13 @@ foreach (0..$#hdlists) { my $here = getcwd(); chdir $e->{thismediainfo}; my $md5sum = `/usr/bin/md5sum hdlist* synthesis*`; + chdir $here; if (open my $md5sumfh, '>', $e->{md5sum}) { print $md5sumfh $md5sum; close $md5sumfh; } else { print STDERR qq(Can't create "$e->{md5sum}": $!\n); } - chdir $here; } } @@ -350,13 +350,13 @@ if (grep { ! $_->{noneedrebuild} } @hdlists) { my $here = getcwd(); chdir $destinfodir; my $md5sum = `/usr/bin/md5sum hdlist* synthesis*`; + chdir $here; if (open my $md5sumfh, '>', $urpmfiles{md5sum}) { print $md5sumfh $md5sum; close $md5sumfh; } else { print STDERR qq(Can't create "$urpmfiles{md5sum}": $!\n); } - chdir $here; } print STDERR "Building version file\n" unless $nooutput; -- cgit v1.2.1