commit:     3ccfd9a375d34b2c2731064ea4bc9e1a4b8946f3
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Sep  7 07:03:35 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Sep  7 07:03:35 2021 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=3ccfd9a3

Revert "Warn if portage home directory is missing"

The check is executed in non-build contexts where the home directory
is irrelevant.

Reverts: 97f1f6a42796c91bf1eba628605c4ef641dcc532
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 lib/portage/data.py | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/lib/portage/data.py b/lib/portage/data.py
index 21f350934..3887ad32e 100644
--- a/lib/portage/data.py
+++ b/lib/portage/data.py
@@ -178,15 +178,6 @@ def _get_global(k):
                                noiselevel=-1)
                        portage_group_warning()
 
-               portage_homedir_ready = 
os.access(os.path.expanduser("~portage"),
-                       os.R_OK | os.W_OK | os.X_OK)
-               if not portage_homedir_ready:
-                       writemsg(
-                               colorize("BAD",
-                               _("portage: unable to utilise 'portage' user 
home directory."
-                                       + " Ensure that it exists with the 
correct permissions."))
-                               + "\n", noiselevel=-1)
-
                globals()['portage_gid'] = portage_gid
                _initialized_globals.add('portage_gid')
                globals()['portage_uid'] = portage_uid

Reply via email to