From: Zac Medico Date: Mon, 16 Jun 2008 11:49:22 +0000 (-0000) Subject: Tweak the config._accept_chost() regex. (trunk r10669) X-Git-Tag: v2.1.5.6~13 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e7eee6cc0b777049cb3dfcef5d2bac80d2d7b12b;p=portage.git Tweak the config._accept_chost() regex. (trunk r10669) svn path=/main/branches/2.1.2/; revision=10670 --- diff --git a/pym/portage.py b/pym/portage.py index 1f41ef867..9231d9c07 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -2402,7 +2402,7 @@ class config: 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))