summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-06-16 11:48:36 +0000
committerZac Medico <zmedico@gentoo.org>2008-06-16 11:48:36 +0000
commit0be166bf8523cbd519c9ea828b5aba23d9f67e3f (patch)
tree04b787a0fa32db77fe099169076d0eecfeb0cd40
parent589bde2742fb7d0502c2e6a56e306bfdd7423c86 (diff)
downloadportage-0be166bf8523cbd519c9ea828b5aba23d9f67e3f.tar.gz
portage-0be166bf8523cbd519c9ea828b5aba23d9f67e3f.tar.bz2
portage-0be166bf8523cbd519c9ea828b5aba23d9f67e3f.zip
Tweak the config._accept_chost() regex.
svn path=/main/trunk/; revision=10669
-rw-r--r--pym/portage/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index b3ee3ff17..6b35f1791 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -2395,7 +2395,7 @@ class config(object):
if not accept_chost:
self._accept_chost_re = re.compile(".*")
elif len(accept_chost) == 1:
- self._accept_chost_re = re.compile(accept_chost[0])
+ self._accept_chost_re = re.compile(r'^%s$' % accept_chost[0])
else:
self._accept_chost_re = re.compile(
r'^(%s)$' % "|".join(accept_chost))