Mageia Bugzilla – Attachment 4185 Details for
Bug 10685
feature request: use urpmi without root privileges to just download packages
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
not warning if no-install is used
only_warn_if_not_using_no-install.diff (text/plain), 470 bytes, created by
Guillaume Rousse
on 2013-07-03 15:44:15 CEST
(
hide
)
Description:
not warning if no-install is used
Filename:
MIME Type:
Creator:
Guillaume Rousse
Created:
2013-07-03 15:44:15 CEST
Size:
470 bytes
patch
obsolete
>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")); > }
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")); }
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 10685
:
4184
| 4185 |
4186