diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2000-02-29 11:04:43 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2000-02-29 11:04:43 +0000 |
commit | 6652211862af8d83822ed33d804b37b0462063f9 (patch) | |
tree | b6e108b5caaea34261f338b9cd9fa5824b27d35c | |
parent | dcc8f57472d251ddd51b94a2f140273a68ad3227 (diff) | |
download | urpmi-6652211862af8d83822ed33d804b37b0462063f9.tar urpmi-6652211862af8d83822ed33d804b37b0462063f9.tar.gz urpmi-6652211862af8d83822ed33d804b37b0462063f9.tar.bz2 urpmi-6652211862af8d83822ed33d804b37b0462063f9.tar.xz urpmi-6652211862af8d83822ed33d804b37b0462063f9.zip |
no_comment
-rwxr-xr-x | urpmi | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -7,7 +7,9 @@ delete $ENV{ENV}; delete $ENV{BASH_ENV}; $< = $>; -log_it(scalar localtime, " urpmi called with @ARGV\n"); +if (@ARGV and $ARGV[0] =~ /^-?-h/) { + shift @ARGV; +} if (@ARGV and $ARGV[0] eq '--auto') { $auto = 1; @@ -29,7 +31,9 @@ while (@ARGV and $ARGV[0] eq '--comment') { shift @ARGV; } -@ARGV or die(_("usage: urpmi [--auto] [-a] package_name [package_names...]\n")); +@ARGV or die(_("usage: urpmi [-h] [--auto] [-a] package_name [package_names...]\n")); + +log_it(scalar localtime, " urpmi called with @ARGV\n"); $dir = "/var/lib/urpmi"; $dir2 = "/etc/urpmi"; @@ -257,7 +261,7 @@ sub translate { $I18N{$_[0]} || $_[0]; } sub log_it { local *LOG; - open LOG, ">>/var/log/urpmi.log" or die; + open LOG, ">>/var/log/urpmi.log" or die "can't ouptput to log file\n"; print LOG @_; } |