diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-12-30 15:53:05 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-12-30 15:53:05 +0000 |
commit | 7eceff9c90f36ebcdd356210b03dc4a916a85584 (patch) | |
tree | b3637e095aeb6ca902b264945357f2c73b92f690 /gendistrib | |
parent | 6787a2f6f082fcdc1b1eb49a4d2d12b54cf1ffd7 (diff) | |
download | rpmtools-7eceff9c90f36ebcdd356210b03dc4a916a85584.tar rpmtools-7eceff9c90f36ebcdd356210b03dc4a916a85584.tar.gz rpmtools-7eceff9c90f36ebcdd356210b03dc4a916a85584.tar.bz2 rpmtools-7eceff9c90f36ebcdd356210b03dc4a916a85584.tar.xz rpmtools-7eceff9c90f36ebcdd356210b03dc4a916a85584.zip |
Fix typo; update copyright
Diffstat (limited to 'gendistrib')
-rwxr-xr-x | gendistrib | 25 |
1 files changed, 13 insertions, 12 deletions
@@ -78,11 +78,10 @@ while (my ($k, $v) = each(%default_urpmfiles)) { $distrib->check(\*STDERR) unless $nooutput; my @hdlists; -my @media_mising_dirs; +my @media_missing_dirs; foreach ($distrib->listmedia) { $distrib->getvalue($_, 'askmedia') || $distrib->getvalue($_, 'suppl') and next; - if (! -d ($distrib->getfullpath($_, 'path'))) { if ($skipmissingdir) { printf(STDERR @@ -91,7 +90,7 @@ foreach ($distrib->listmedia) { ) unless $nooutput; } else { # delaying error report to report all errors, not the only first - push(@media_mising_dirs, $_); + push(@media_missing_dirs, $_); } next; } @@ -123,9 +122,9 @@ foreach ($distrib->listmedia) { }; } -# if there is result here, $skipmissingdir is not set and there is errors: -if (@media_mising_dirs) { - foreach my $media (@media_mising_dirs) { +#- die if there are unspecified missing directories +if (@media_missing_dirs) { + foreach my $media (@media_missing_dirs) { printf(STDERR "Missing dir '%s' for media '%s'\n", $distrib->getpath($media, 'path'), @@ -143,12 +142,12 @@ if (!-d $destinfodir) { } foreach my $e (@hdlists) { - for my $d (qw(mediainfo thismediainfo)) { - if (! -d $e->{$d}) { - mkdir $e->{$d}, 0755 - or die qq(Can't create directory "$e->{$d}": $!\n); - } + for my $d (qw(mediainfo thismediainfo)) { + if (! -d $e->{$d}) { + mkdir $e->{$d}, 0755 + or die qq(Can't create directory "$e->{$d}": $!\n); } + } } sub clean_cache { @@ -537,7 +536,9 @@ F<media.cfg> file. =head1 COPYRIGHT -Copyright (C) 1999-2005 Mandrakesoft +Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 MandrakeSoft SA + +Copyright (C) 2005 Mandriva SA This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by |