From 0809c64cb7931261b92775d08d3b48b33854fd79 Mon Sep 17 00:00:00 2001 From: Donald Stufft Date: Thu, 4 Jul 2013 19:21:10 -0400 Subject: Make sure to purge the serversig as well as the simple --- store.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/store.py b/store.py index ba02c2a..37d05c1 100644 --- a/store.py +++ b/store.py @@ -2331,16 +2331,17 @@ class Store: where name=%s''', (password, username)) def _add_invalidation(self, package=None): - parts = ["/", "simple"] - if package is not None: - parts.append(package) - path = posixpath.join(*parts) - url = urlparse.urljoin( + all_parts = [["/", "simple"], ["/", "serversig"]] + for parts in all_parts: + if package is not None: + parts.append(package) + path = posixpath.join(*parts) + url = urlparse.urljoin( "https://%s" % urlparse.urlparse(self.config.url).netloc, path, ) - url = url if url.endswith("/") else url + "/" - self._changed_urls.add(url) + url = url if url.endswith("/") else url + "/" + self._changed_urls.add(url) @retry(Exception, tries=5, delay=1, backoff=1) def _invalidate_cache(self): -- cgit v1.2.1