diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-08-11 11:40:43 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-08-11 11:40:43 +0000 |
commit | 58c4003c40a63ce57cc587b4651926c3a34c3632 (patch) | |
tree | 7d24d46e6c85915e0a88acc07c3b13defea9aead /urpm/args.pm | |
parent | f71c4570e3918f9fb10e633cce55a214f476d828 (diff) | |
download | urpmi-58c4003c40a63ce57cc587b4651926c3a34c3632.tar urpmi-58c4003c40a63ce57cc587b4651926c3a34c3632.tar.gz urpmi-58c4003c40a63ce57cc587b4651926c3a34c3632.tar.bz2 urpmi-58c4003c40a63ce57cc587b4651926c3a34c3632.tar.xz urpmi-58c4003c40a63ce57cc587b4651926c3a34c3632.zip |
- all tools
o new option --wait-lock (#13025)
Diffstat (limited to 'urpm/args.pm')
-rw-r--r-- | urpm/args.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/urpm/args.pm b/urpm/args.pm index 68feea57..b5694863 100644 --- a/urpm/args.pm +++ b/urpm/args.pm @@ -52,6 +52,7 @@ my %options_spec_all = ( 'q|quiet' => sub { --$options{verbose} }, 'v|verbose' => sub { ++$options{verbose} }, 'urpmi-root=s' => sub { urpm::set_files($urpm, $_[1]) }, + 'wait-lock' => \$options{wait_lock}, 'use-copied-hdlist' => sub { $urpm->{options}{use_copied_hdlist} = 1 }, ); @@ -422,6 +423,9 @@ sub parse_cmdline { if ($options{probe_with} && $options{probe_with} eq 'rpms' && $options{virtual}) { die N("Can't use %s with %s", "--probe-rpms", "--virtual"); } + if ($options{nolock} && $options{wait_lock}) { + warn N("Can't use %s with %s", "--wait-lock", "--nolock") . "\n"; + } if ($tool eq 'urpmf' && @ARGV && $ARGV[0] eq '--') { if (@ARGV == 2) { my $p = $ARGV[1]; |