From: Zac Medico Date: Mon, 16 Jun 2008 11:48:36 +0000 (-0000) Subject: Tweak the config._accept_chost() regex. X-Git-Tag: v2.2_rc1~31 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0be166bf8523cbd519c9ea828b5aba23d9f67e3f;p=portage.git Tweak the config._accept_chost() regex. svn path=/main/trunk/; revision=10669 --- 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))