aboutsummaryrefslogtreecommitdiffstats
path: root/gendistrib
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-03-29 15:24:25 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-03-29 15:24:25 +0000
commit547b8916f6e89d86b0688e2f9dd59e4d99574bdc (patch)
tree7194cd7f8ae3e0b17535f468f75895586b133ea4 /gendistrib
parenta6d49c18987b59a67fab0e548b09656c198181ff (diff)
downloadrpmtools-547b8916f6e89d86b0688e2f9dd59e4d99574bdc.tar
rpmtools-547b8916f6e89d86b0688e2f9dd59e4d99574bdc.tar.gz
rpmtools-547b8916f6e89d86b0688e2f9dd59e4d99574bdc.tar.bz2
rpmtools-547b8916f6e89d86b0688e2f9dd59e4d99574bdc.tar.xz
rpmtools-547b8916f6e89d86b0688e2f9dd59e4d99574bdc.zip
Create the directory "thismediainfo" if it doesn't exist
Diffstat (limited to 'gendistrib')
-rwxr-xr-xgendistrib8
1 files changed, 5 insertions, 3 deletions
diff --git a/gendistrib b/gendistrib
index cd4404c..bc9e04d 100755
--- a/gendistrib
+++ b/gendistrib
@@ -212,9 +212,11 @@ foreach (0..$#hdlists) {
synthesis => $e->{synthesis});
unless ($nomediainfo && $nomd5sum) {
- if (! -d $e->{mediainfo}) {
- mkdir $e->{mediainfo}, 0755
- or print STDERR qq(Can't create directory "$e->{mediainfo}": $!\n);
+ for my $d (qw(mediainfo thismediainfo)) {
+ if (! -d $e->{$d}) {
+ mkdir $e->{$d}, 0755
+ or print STDERR qq(Can't create directory "$e->{$d}": $!\n);
+ }
}
}