diff options
author | Donald Stufft <donald@stufft.io> | 2013-07-04 19:21:10 -0400 |
---|---|---|
committer | Donald Stufft <donald@stufft.io> | 2013-07-04 19:21:10 -0400 |
commit | 0809c64cb7931261b92775d08d3b48b33854fd79 (patch) | |
tree | 5fa82aada4c5e9c4117f9bdbb0b6c62184be743f | |
parent | a06239543b8a283218592bb09c3ff7628bf9e825 (diff) | |
download | decorator-0809c64cb7931261b92775d08d3b48b33854fd79.tar.gz |
Make sure to purge the serversig as well as the simple
-rw-r--r-- | store.py | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -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): |