diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-09-04 15:55:21 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-09-04 15:55:21 +0000 |
commit | 561b6b1eaf2cf64d7c33b69d57ae679a8cf874c3 (patch) | |
tree | 67bbec6f779928bcbc3075a99007a7a95fc8f7ed /urpmi | |
parent | 44cd0817b8110e82a98db443a4319feffd0202ff (diff) | |
download | urpmi-561b6b1eaf2cf64d7c33b69d57ae679a8cf874c3.tar urpmi-561b6b1eaf2cf64d7c33b69d57ae679a8cf874c3.tar.gz urpmi-561b6b1eaf2cf64d7c33b69d57ae679a8cf874c3.tar.bz2 urpmi-561b6b1eaf2cf64d7c33b69d57ae679a8cf874c3.tar.xz urpmi-561b6b1eaf2cf64d7c33b69d57ae679a8cf874c3.zip |
add new urpmi option, only for debugging purpose: --debug__do_not_install
Diffstat (limited to 'urpmi')
-rwxr-xr-x | urpmi | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -263,7 +263,7 @@ if ($env) { $urpm->{prefer_vendor_list} = "$env/prefer.vendor.list"; $urpm->{statedir} = $env; } else { - if ($< != 0) { + if ($< != 0 && !$options{debug__do_not_install}) { #- need to be root if binary rpms are to be installed $auto_select || @names || @files and $urpm->{fatal}(1, N("Only superuser is allowed to install packages")); } @@ -595,7 +595,7 @@ foreach my $pkg (sort { $a->name cmp $b->name } @{$urpm->{depslist}}[keys %{$sta } } $urpm->{nb_install} = @to_install; -if ($env) { +if ($env && !$options{debug__do_not_install}) { my $msg = $urpm->{nb_install} == 1 ? N("To satisfy dependencies, the following package is going to be installed:") : N("To satisfy dependencies, the following packages are going to be installed:"); my $msg2 = P("(%d package, %d MB)", "(%d packages, %d MB)", $urpm->{nb_install}, $urpm->{nb_install}, toMb($sum)); |