aboutsummaryrefslogtreecommitdiffstats
path: root/gendistrib
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-02-17 11:26:42 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-02-17 11:26:42 +0000
commite2fc6313328e5c89eb5329711ee24f90d55e899c (patch)
treed9f7a60349a695e33c059e7ac448c07ec7c7a239 /gendistrib
parentdd0e093481b9dad3d807827aff2875278beb06c7 (diff)
downloadrpmtools-e2fc6313328e5c89eb5329711ee24f90d55e899c.tar
rpmtools-e2fc6313328e5c89eb5329711ee24f90d55e899c.tar.gz
rpmtools-e2fc6313328e5c89eb5329711ee24f90d55e899c.tar.bz2
rpmtools-e2fc6313328e5c89eb5329711ee24f90d55e899c.tar.xz
rpmtools-e2fc6313328e5c89eb5329711ee24f90d55e899c.zip
Spelling fixes in usage
Diffstat (limited to 'gendistrib')
-rwxr-xr-xgendistrib10
1 files changed, 7 insertions, 3 deletions
diff --git a/gendistrib b/gendistrib
index 3f7d43f..b1d9b64 100755
--- a/gendistrib
+++ b/gendistrib
@@ -40,8 +40,8 @@ Options:
(default media/media_info/depslist.ordered)
--hdlists file path of hdlists file (default media/media_info/hdlists)
--headersdir dir put temporary files in this dir (default \$TMPDIR)
- --nobadrpm do not stop on bad rpm
- --nochkdep do not find missing dependancies
+ --nobadrpm don't stop on bad rpms
+ --nochkdep don't search for missing dependencies
--noclean keep cache files
--provides file path of provides file (default media/media_info/provides)
--nomediainfo don't create per-media media_info subdirectories
@@ -113,7 +113,11 @@ foreach (<$fh>) {
close $fh;
sub clean_cache {
- system($ENV{LD_LOADER} ? $ENV{LD_LOADER} : @{[]}, "rm", "-rf", $headers_dir) unless $noclean;
+ unless ($noclean) {
+ system($ENV{LD_LOADER} ? $ENV{LD_LOADER} : @{[]}, "rm", "-rf", $headers_dir);
+ mkdir $headers_dir
+ or print STDERR qq(Can't create directory "$headers_dir": $!\n);
+ }
}
clean_cache();