From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 76E98158041 for ; Tue, 7 Sep 2021 07:04:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D322BE0931; Tue, 7 Sep 2021 07:04:18 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id AB5DCE0931 for ; Tue, 7 Sep 2021 07:04:18 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 78D5D342A8F for ; Tue, 7 Sep 2021 07:04:17 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9F86E50 for ; Tue, 7 Sep 2021 07:04:15 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1630998215.3ccfd9a375d34b2c2731064ea4bc9e1a4b8946f3.mgorny@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: lib/portage/ X-VCS-Repository: proj/portage X-VCS-Files: lib/portage/data.py X-VCS-Directories: lib/portage/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 3ccfd9a375d34b2c2731064ea4bc9e1a4b8946f3 X-VCS-Branch: master Date: Tue, 7 Sep 2021 07:04:15 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4118fbd3-9f14-4594-b7a3-c0c08f9e1755 X-Archives-Hash: bef2ba04e118fc12287e6b2df257eb19 commit: 3ccfd9a375d34b2c2731064ea4bc9e1a4b8946f3 Author: Michał Górny gentoo org> AuthorDate: Tue Sep 7 07:03:35 2021 +0000 Commit: Michał Górny gentoo 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 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