Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage:master commit in: lib/portage/
Date: Tue, 07 Sep 2021 07:04:19
Message-Id: 1630998215.3ccfd9a375d34b2c2731064ea4bc9e1a4b8946f3.mgorny@gentoo
1 commit: 3ccfd9a375d34b2c2731064ea4bc9e1a4b8946f3
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 7 07:03:35 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 7 07:03:35 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=3ccfd9a3
7
8 Revert "Warn if portage home directory is missing"
9
10 The check is executed in non-build contexts where the home directory
11 is irrelevant.
12
13 Reverts: 97f1f6a42796c91bf1eba628605c4ef641dcc532
14 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
15
16 lib/portage/data.py | 9 ---------
17 1 file changed, 9 deletions(-)
18
19 diff --git a/lib/portage/data.py b/lib/portage/data.py
20 index 21f350934..3887ad32e 100644
21 --- a/lib/portage/data.py
22 +++ b/lib/portage/data.py
23 @@ -178,15 +178,6 @@ def _get_global(k):
24 noiselevel=-1)
25 portage_group_warning()
26
27 - portage_homedir_ready = os.access(os.path.expanduser("~portage"),
28 - os.R_OK | os.W_OK | os.X_OK)
29 - if not portage_homedir_ready:
30 - writemsg(
31 - colorize("BAD",
32 - _("portage: unable to utilise 'portage' user home directory."
33 - + " Ensure that it exists with the correct permissions."))
34 - + "\n", noiselevel=-1)
35 -
36 globals()['portage_gid'] = portage_gid
37 _initialized_globals.add('portage_gid')
38 globals()['portage_uid'] = portage_uid