summaryrefslogtreecommitdiffstats
path: root/pym/portage_data.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-12-25 09:15:50 +0000
committerZac Medico <zmedico@gentoo.org>2006-12-25 09:15:50 +0000
commitb485fb4655cc8db2a882c5d9ea675a1bb5a2197a (patch)
tree6c7c4cbc05a95dc2d59d0b279122aa36a2aacb4c /pym/portage_data.py
parent4e5abb4c8ff5448ae2bca4aa6b1b334f506fdf52 (diff)
downloadportage-b485fb4655cc8db2a882c5d9ea675a1bb5a2197a.tar.gz
portage-b485fb4655cc8db2a882c5d9ea675a1bb5a2197a.tar.bz2
portage-b485fb4655cc8db2a882c5d9ea675a1bb5a2197a.zip
Make sure that portage_group_warning() will be shown even in quiet mode.
svn path=/main/trunk/; revision=5390
Diffstat (limited to 'pym/portage_data.py')
-rw-r--r--pym/portage_data.py15
1 files changed, 11 insertions, 4 deletions
diff --git a/pym/portage_data.py b/pym/portage_data.py
index 649b54dd8..0f846a8e2 100644
--- a/pym/portage_data.py
+++ b/pym/portage_data.py
@@ -48,10 +48,17 @@ os.environ["USERLAND"]=userland
def portage_group_warning():
warn_prefix = bad("*** WARNING *** ")
- writemsg(warn_prefix + "For security reasons, only system administrators should be\n")
- writemsg(warn_prefix + "allowed in the portage group. Untrusted users or processes\n")
- writemsg(warn_prefix + "can potentially exploit the portage group for attacks such as\n")
- writemsg(warn_prefix + "local privilege escalation.\n\n")
+ mylines = [
+ "For security reasons, only system administrators should be",
+ "allowed in the portage group. Untrusted users or processes",
+ "can potentially exploit the portage group for attacks such as",
+ "local privilege escalation."
+ ]
+ for x in mylines:
+ writemsg(warn_prefix, noiselevel=-1)
+ writemsg(x, noiselevel=-1)
+ writemsg("\n", noiselevel=-1)
+ writemsg("\n", noiselevel=-1)
# Portage has 3 security levels that depend on the uid and gid of the main
# process and are assigned according to the following table: