diff options
Diffstat (limited to 'urpm')
-rw-r--r-- | urpm/args.pm | 1 | ||||
-rw-r--r-- | urpm/main_loop.pm | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/urpm/args.pm b/urpm/args.pm index 47dbb1e2..69a8dd51 100644 --- a/urpm/args.pm +++ b/urpm/args.pm @@ -137,6 +137,7 @@ my %options_spec = ( 'strict-arch!' => sub { $urpm->{options}{'strict-arch'} = $_[1] }, 'norebuild!' => sub { $urpm->{options}{'build-hdlist-on-error'} = !$_[1] }, 'test!' => \$::test, + 'debug__do_not_install' => \$options{debug__do_not_install}, 'skip=s' => \$options{skip}, 'prefer=s' => \$options{prefer}, 'root=s' => sub { set_root($urpm, $_[1]) }, diff --git a/urpm/main_loop.pm b/urpm/main_loop.pm index c0d7e25c..f746f9b0 100644 --- a/urpm/main_loop.pm +++ b/urpm/main_loop.pm @@ -63,6 +63,8 @@ urpm::install::build_transaction_set_($urpm, $state, split_level => $urpm->{options}{'split-level'}, split_length => !$test && $urpm->{options}{'split-length'}); +$options{debug__do_not_install} and exit 0; + my ($ok, $nok) = (0, 0); my @errors; |