summaryrefslogtreecommitdiffstats
path: root/urpmi
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-02-29 11:04:43 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-02-29 11:04:43 +0000
commit6652211862af8d83822ed33d804b37b0462063f9 (patch)
treeb6e108b5caaea34261f338b9cd9fa5824b27d35c /urpmi
parentdcc8f57472d251ddd51b94a2f140273a68ad3227 (diff)
downloadurpmi-6652211862af8d83822ed33d804b37b0462063f9.tar
urpmi-6652211862af8d83822ed33d804b37b0462063f9.tar.gz
urpmi-6652211862af8d83822ed33d804b37b0462063f9.tar.bz2
urpmi-6652211862af8d83822ed33d804b37b0462063f9.tar.xz
urpmi-6652211862af8d83822ed33d804b37b0462063f9.zip
no_comment
Diffstat (limited to 'urpmi')
-rwxr-xr-xurpmi10
1 files changed, 7 insertions, 3 deletions
diff --git a/urpmi b/urpmi
index 65deb7a2..7b7ba2b0 100755
--- a/urpmi
+++ b/urpmi
@@ -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 @_;
}