aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/init.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-08-29 10:18:06 +0000
committerThierry Vignaud <tv@mandriva.org>2007-08-29 10:18:06 +0000
commite986b2a7ace10135c9f135cfb64dabaa509c5089 (patch)
tree4cd351d9a642c000d945c632ee31987f6723ab05 /Rpmdrake/init.pm
parentc7b7cb709b9cb42bc9da83129cc8074dc0e91609 (diff)
downloadrpmdrake-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/init.pm')
-rwxr-xr-xRpmdrake/init.pm3
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];