aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-11-16 13:15:16 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-11-16 13:15:16 +0000
commit88ec1f37b6cc9236df71f15432e79f5701e96a1d (patch)
tree9c7fc667386a5aa85db9bc4a56dcfe6a927506e7
parent78edce52c554512d8cbfc37616b64bc0fabf71af (diff)
downloadrpmtools-88ec1f37b6cc9236df71f15432e79f5701e96a1d.tar
rpmtools-88ec1f37b6cc9236df71f15432e79f5701e96a1d.tar.gz
rpmtools-88ec1f37b6cc9236df71f15432e79f5701e96a1d.tar.bz2
rpmtools-88ec1f37b6cc9236df71f15432e79f5701e96a1d.tar.xz
rpmtools-88ec1f37b6cc9236df71f15432e79f5701e96a1d.zip
Fix the location where the MD5SUM files are generated (thanks joeghi)
-rwxr-xr-xgendistrib4
1 files changed, 2 insertions, 2 deletions
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;