diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-03-29 15:24:25 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-03-29 15:24:25 +0000 |
commit | 547b8916f6e89d86b0688e2f9dd59e4d99574bdc (patch) | |
tree | 7194cd7f8ae3e0b17535f468f75895586b133ea4 /gendistrib | |
parent | a6d49c18987b59a67fab0e548b09656c198181ff (diff) | |
download | rpmtools-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-x | gendistrib | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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); + } } } |