diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-06-23 04:35:27 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-06-23 04:35:27 +0000 |
commit | ba30381ef129ae52e17f89a0537b09c48e4905c3 (patch) | |
tree | ec5d228c6df66ec707c3e2676ade900bd1f2d65f | |
parent | 65f99858a8e7ca52a2ccf4d59d3d7b4a3d515b6e (diff) | |
download | portage-ba30381ef129ae52e17f89a0537b09c48e4905c3.tar.gz portage-ba30381ef129ae52e17f89a0537b09c48e4905c3.tar.bz2 portage-ba30381ef129ae52e17f89a0537b09c48e4905c3.zip |
Prevent an inappropriate warning when a repoman user's profile does not support sandbox. Thanks to exg for reporting.
svn path=/main/trunk/; revision=3614
-rw-r--r-- | pym/portage.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/pym/portage.py b/pym/portage.py index d0cbf70de..8b1c0871c 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -1281,8 +1281,15 @@ class config: noiselevel=-1) self.features.remove("gpg") - if not portage_exec.sandbox_capable and ("sandbox" in self.features or "usersandbox" in self.features): - writemsg(red("!!! Problem with sandbox binary. Disabling...\n\n"), + if not portage_exec.sandbox_capable and \ + ("sandbox" in self.features or "usersandbox" in self.features): + if os.environ.get("PORTAGE_CALLER","") == "repoman" and \ + self.profile_path is not None and \ + os.path.realpath(self.profile_path) != \ + os.path.realpath(PROFILE_PATH): + pass # This profile does not belong to the user running repoman. + else: + writemsg(red("!!! Problem with sandbox binary. Disabling...\n\n"), noiselevel=-1) if "sandbox" in self.features: self.features.remove("sandbox") |