diff options
Diffstat (limited to 'pym/portage/__init__.py')
-rw-r--r-- | pym/portage/__init__.py | 2 |
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)) |