Tweak the config._accept_chost() regex.
authorZac Medico <zmedico@gentoo.org>
Mon, 16 Jun 2008 11:48:36 +0000 (11:48 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 16 Jun 2008 11:48:36 +0000 (11:48 -0000)
svn path=/main/trunk/; revision=10669

pym/portage/__init__.py

index b3ee3ff17f71033fbffca2722afe75c237cf2b1b..6b35f1791ac17ec3688674b38b89ea21155d1854 100644 (file)
@@ -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))