Tweak the config._accept_chost() regex. (trunk r10669)
authorZac Medico <zmedico@gentoo.org>
Mon, 16 Jun 2008 11:49:22 +0000 (11:49 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 16 Jun 2008 11:49:22 +0000 (11:49 -0000)
svn path=/main/branches/2.1.2/; revision=10670

pym/portage.py

index 1f41ef867824b89ed77b6f0c1221e15f8d0a6108..9231d9c0757edde4f49cb9d7a37596fc3fdbd485 100644 (file)
@@ -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))