aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-08-19 06:11:11 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-08-19 06:11:11 +0000
commit385666c71f57c2f605aab048603d64e03d239fb4 (patch)
treeb3b54ab858e9997d4b8dd75ee78c41321705dcbb
parent39d045a383ab5c952041f461eb2775affe106de7 (diff)
downloadrpmdrake-385666c71f57c2f605aab048603d64e03d239fb4.tar
rpmdrake-385666c71f57c2f605aab048603d64e03d239fb4.tar.gz
rpmdrake-385666c71f57c2f605aab048603d64e03d239fb4.tar.bz2
rpmdrake-385666c71f57c2f605aab048603d64e03d239fb4.tar.xz
rpmdrake-385666c71f57c2f605aab048603d64e03d239fb4.zip
Don't show selections in read-only mode
-rwxr-xr-xrpmdrake2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmdrake b/rpmdrake
index 79249ed3..b50223c9 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -94,7 +94,7 @@ N("You are launching this program as a normal user.
You will not be able to perform modifications on the system,
but you may still browse the existing database."), yesno => 1, text => { no => N("Cancel"), yes => N("Ok") }) or myexit(0));
-my $dont_show_selections = 0;
+my $dont_show_selections = $> ? 1 : 0;
#- /usr/share/rpmlint/TagsCheck.py (duplicates are normal, so that we are not too far away from .py)
my @valid_groups = (