summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Stufft <donald@stufft.io>2013-07-04 19:21:10 -0400
committerDonald Stufft <donald@stufft.io>2013-07-04 19:21:10 -0400
commit0809c64cb7931261b92775d08d3b48b33854fd79 (patch)
tree5fa82aada4c5e9c4117f9bdbb0b6c62184be743f
parenta06239543b8a283218592bb09c3ff7628bf9e825 (diff)
downloaddecorator-0809c64cb7931261b92775d08d3b48b33854fd79.tar.gz
Make sure to purge the serversig as well as the simple
-rw-r--r--store.py15
1 files 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):