1. PyPA
  2. Python Packaging Authority Projects
  3. pypi

Commits

Donald Stufft  committed 7ef86ce

Make sure to purge the serversig as well as the simple

  • Participants
  • Parent commits cf65865
  • Branches default

Comments (0)

Files changed (1)

File store.py

View file
             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):