Skip to content

Commit

Permalink
Oh don't I just love weird edge cases :-(
Browse files Browse the repository at this point in the history
  • Loading branch information
xolox committed Apr 15, 2020
1 parent b55b88f commit 9c0ba9e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion apt_mirror_updater/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,14 @@ def is_ubuntu_mirror(self, url):
on individual webmaster's perceptions of what expected clients
(apt-get) should and shouldn't be accessing :-).
"""
# At the time of writing this test seems to work on all mirrors except for the one below.
if url == 'http://ubuntu.cs.utah.edu/ubuntu':
# This mirror intermittently serves 404 errors on arbitrary URLs.
# Apart from that it does look to contain the expected directory
# layout. Seems like they're load balancing between good and bad
# servers (where the bad servers have a broken configuration).
return True
# At the time of writing the following test seems to work on all
# mirrors apart from the exceptions noted in this method.
if self.is_mirror_url(url, '/project/ubuntu-archive-keyring.gpg', b'ftpmaster@ubuntu.com'):
return True
# The mirror http://mirrors.codec-cluster.org/ubuntu fails the above
Expand Down

0 comments on commit 9c0ba9e

Please sign in to comment.