diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-08-29 10:18:06 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-08-29 10:18:06 +0000 |
commit | e986b2a7ace10135c9f135cfb64dabaa509c5089 (patch) | |
tree | 4cd351d9a642c000d945c632ee31987f6723ab05 /Rpmdrake | |
parent | c7b7cb709b9cb42bc9da83129cc8074dc0e91609 (diff) | |
download | rpmdrake-e986b2a7ace10135c9f135cfb64dabaa509c5089.tar rpmdrake-e986b2a7ace10135c9f135cfb64dabaa509c5089.tar.gz rpmdrake-e986b2a7ace10135c9f135cfb64dabaa509c5089.tar.bz2 rpmdrake-e986b2a7ace10135c9f135cfb64dabaa509c5089.tar.xz rpmdrake-e986b2a7ace10135c9f135cfb64dabaa509c5089.zip |
add --run-as-root as equivalent to --root which will be deprecated in next commit
Diffstat (limited to 'Rpmdrake')
-rwxr-xr-x | Rpmdrake/init.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Rpmdrake/init.pm b/Rpmdrake/init.pm index 6c68613a..63ac0d2a 100755 --- a/Rpmdrake/init.pm +++ b/Rpmdrake/init.pm @@ -52,6 +52,7 @@ N(" --pkg-sel=pkg1,.. preselect these packages"), N(" --rpm-root=path use another root for rpm installation"), N(" --urpmi-root use another root for urpmi db & rpm installation"), N(" --root force to run as root"), +N(" --run-as-root force to run as root"), N(" --search=pkg run search for \"pkg\""), chomp_(N(" --version - print this tool's version number. ")), @@ -123,7 +124,7 @@ if ($MODE eq 'remove') { $default_list_mode = 'all_updates'; } -$MODE eq 'update' || $rpmdrake_options{root} and require_root_capability(); +$MODE eq 'update' || $rpmdrake_options{'run-as-root'} || $rpmdrake_options{root} and require_root_capability(); $::noborderWhenEmbedded = 1; our $changelog_first = $changelog_first_config->[0]; |