blob: 96257e62124a1d9d9e4aa426cf0f40043caf1a83 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
diff --git a/urpmi b/urpmi
index f515f94..10bca45 100755
--- a/urpmi
+++ b/urpmi
@@ -260,7 +260,7 @@ if ($bug) {
if ($env) {
urpm::set_env($urpm, $env);
} else {
- if ($< != 0 && !$options{debug__do_not_install}) {
+ if ($< != 0 && !$options{debug__do_not_install} && !$no_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"));
}
|